7 instantiations of DashboardService
Aspire.Hosting.Tests (7)
Dashboard\DashboardServiceTests.cs (7)
42
var dashboardService = new
DashboardServiceImpl
(dashboardServiceData, new TestHostEnvironment(), new TestHostApplicationLifetime(), NullLogger<DashboardServiceImpl>.Instance);
95
var dashboardService = new
DashboardServiceImpl
(dashboardServiceData, new TestHostEnvironment(), new TestHostApplicationLifetime(), NullLogger<DashboardServiceImpl>.Instance);
147
var dashboardService = new
DashboardServiceImpl
(dashboardServiceData, new TestHostEnvironment(), new TestHostApplicationLifetime(), loggerFactory.CreateLogger<DashboardServiceImpl>());
231
var dashboardService = new
DashboardServiceImpl
(dashboardServiceData, new TestHostEnvironment(), new TestHostApplicationLifetime(), loggerFactory.CreateLogger<DashboardServiceImpl>());
300
var dashboardService = new
DashboardServiceImpl
(dashboardServiceData, new TestHostEnvironment(), new TestHostApplicationLifetime(), loggerFactory.CreateLogger<DashboardServiceImpl>());
358
var dashboardService = new
DashboardServiceImpl
(dashboardServiceData, new TestHostEnvironment(), new TestHostApplicationLifetime(), loggerFactory.CreateLogger<DashboardServiceImpl>());
394
var dashboardService = new
DashboardServiceImpl
(dashboardServiceData, new TestHostEnvironment(), new TestHostApplicationLifetime(), loggerFactory.CreateLogger<DashboardServiceImpl>());
23 references to DashboardService
Aspire.Hosting (4)
Dashboard\DashboardService.cs (1)
22
internal sealed partial class DashboardService(DashboardServiceData serviceData, IHostEnvironment hostEnvironment, IHostApplicationLifetime hostApplicationLifetime, ILogger<
DashboardService
> logger)
Dashboard\DashboardServiceData.cs (1)
14
/// Models the state for <see cref="
DashboardService
"/>, as that service is constructed
Dashboard\DashboardServiceHost.cs (2)
24
/// Hosts a gRPC service via <see cref="
DashboardService
"/> (aka the "Resource Service") that a dashboard can connect to.
127
_app.MapGrpcService<
DashboardService
>();
Aspire.Hosting.Tests (19)
Dashboard\DashboardServiceTests.cs (19)
19
using DashboardServiceImpl = Aspire.Hosting.Dashboard.
DashboardService
;
32
const int LongLineCharacters =
DashboardServiceImpl
.LogMaxBatchCharacters / 3;
42
var
dashboardService = new DashboardServiceImpl(dashboardServiceData, new TestHostEnvironment(), new TestHostApplicationLifetime(), NullLogger<
DashboardServiceImpl
>.Instance);
91
const int LongLineCharacters =
DashboardServiceImpl
.LogMaxBatchCharacters / 3;
95
var
dashboardService = new DashboardServiceImpl(dashboardServiceData, new TestHostEnvironment(), new TestHostApplicationLifetime(), NullLogger<
DashboardServiceImpl
>.Instance);
100
logger.LogInformation(new string('1',
DashboardServiceImpl
.LogMaxBatchCharacters));
118
l => Assert.Equal(
DashboardServiceImpl
.LogMaxBatchCharacters, l.Text.Length));
147
var
dashboardService = new DashboardServiceImpl(dashboardServiceData, new TestHostEnvironment(), new TestHostApplicationLifetime(), loggerFactory.CreateLogger<
DashboardServiceImpl
>());
231
var
dashboardService = new DashboardServiceImpl(dashboardServiceData, new TestHostEnvironment(), new TestHostApplicationLifetime(), loggerFactory.CreateLogger<
DashboardServiceImpl
>());
300
var
dashboardService = new DashboardServiceImpl(dashboardServiceData, new TestHostEnvironment(), new TestHostApplicationLifetime(), loggerFactory.CreateLogger<
DashboardServiceImpl
>());
358
var
dashboardService = new DashboardServiceImpl(dashboardServiceData, new TestHostEnvironment(), new TestHostApplicationLifetime(), loggerFactory.CreateLogger<
DashboardServiceImpl
>());
394
var
dashboardService = new DashboardServiceImpl(dashboardServiceData, new TestHostEnvironment(), new TestHostApplicationLifetime(), loggerFactory.CreateLogger<
DashboardServiceImpl
>());