11 instantiations of DashboardService
Aspire.Hosting.Tests (11)
Dashboard\DashboardServiceTests.cs (11)
43
var dashboardService = new
DashboardServiceImpl
(dashboardServiceData, new TestHostEnvironment(), new TestHostApplicationLifetime(), new ConfigurationBuilder().Build(), NullLogger<DashboardServiceImpl>.Instance);
96
var dashboardService = new
DashboardServiceImpl
(dashboardServiceData, new TestHostEnvironment(), new TestHostApplicationLifetime(), new ConfigurationBuilder().Build(), NullLogger<DashboardServiceImpl>.Instance);
148
var dashboardService = new
DashboardServiceImpl
(dashboardServiceData, new TestHostEnvironment(), new TestHostApplicationLifetime(), new ConfigurationBuilder().Build(), loggerFactory.CreateLogger<DashboardServiceImpl>());
233
var dashboardService = new
DashboardServiceImpl
(dashboardServiceData, new TestHostEnvironment(), new TestHostApplicationLifetime(), new ConfigurationBuilder().Build(), loggerFactory.CreateLogger<DashboardServiceImpl>());
303
var dashboardService = new
DashboardServiceImpl
(dashboardServiceData, new TestHostEnvironment(), new TestHostApplicationLifetime(), new ConfigurationBuilder().Build(), loggerFactory.CreateLogger<DashboardServiceImpl>());
350
var dashboardService = new
DashboardServiceImpl
(dashboardServiceData, new TestHostEnvironment(), new TestHostApplicationLifetime(), new ConfigurationBuilder().Build(), loggerFactory.CreateLogger<DashboardServiceImpl>());
409
var dashboardService = new
DashboardServiceImpl
(dashboardServiceData, new TestHostEnvironment(), new TestHostApplicationLifetime(), new ConfigurationBuilder().Build(), loggerFactory.CreateLogger<DashboardServiceImpl>());
446
var dashboardService = new
DashboardServiceImpl
(dashboardServiceData, new TestHostEnvironment(), new TestHostApplicationLifetime(), new ConfigurationBuilder().Build(), loggerFactory.CreateLogger<DashboardServiceImpl>());
501
var dashboardService = new
DashboardServiceImpl
(
530
var dashboardService = new
DashboardServiceImpl
(
560
var dashboardService = new
DashboardServiceImpl
(
32 references to DashboardService
Aspire.Hosting (5)
Dashboard\DashboardService.cs (1)
23
internal sealed partial class DashboardService(DashboardServiceData serviceData, IHostEnvironment hostEnvironment, IHostApplicationLifetime hostApplicationLifetime, IConfiguration configuration, ILogger<
DashboardService
> logger)
Dashboard\DashboardServiceData.cs (2)
14
/// Models the state for <see cref="
DashboardService
"/>, as that service is constructed
179
request.InputsDialog.InputItems.Select(i => new InputDto(i.Name, i.Value,
DashboardService
.MapInputType(i.InputType))).ToList(),
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 (27)
Dashboard\DashboardServiceTests.cs (27)
20
using DashboardServiceImpl = Aspire.Hosting.Dashboard.
DashboardService
;
33
const int LongLineCharacters =
DashboardServiceImpl
.LogMaxBatchCharacters / 3;
43
var
dashboardService = new DashboardServiceImpl(dashboardServiceData, new TestHostEnvironment(), new TestHostApplicationLifetime(), new ConfigurationBuilder().Build(), NullLogger<
DashboardServiceImpl
>.Instance);
92
const int LongLineCharacters =
DashboardServiceImpl
.LogMaxBatchCharacters / 3;
96
var
dashboardService = new DashboardServiceImpl(dashboardServiceData, new TestHostEnvironment(), new TestHostApplicationLifetime(), new ConfigurationBuilder().Build(), NullLogger<
DashboardServiceImpl
>.Instance);
101
logger.LogInformation(new string('1',
DashboardServiceImpl
.LogMaxBatchCharacters));
119
l => Assert.Equal(
DashboardServiceImpl
.LogMaxBatchCharacters, l.Text.Length));
148
var
dashboardService = new DashboardServiceImpl(dashboardServiceData, new TestHostEnvironment(), new TestHostApplicationLifetime(), new ConfigurationBuilder().Build(), loggerFactory.CreateLogger<
DashboardServiceImpl
>());
233
var
dashboardService = new DashboardServiceImpl(dashboardServiceData, new TestHostEnvironment(), new TestHostApplicationLifetime(), new ConfigurationBuilder().Build(), loggerFactory.CreateLogger<
DashboardServiceImpl
>());
303
var
dashboardService = new DashboardServiceImpl(dashboardServiceData, new TestHostEnvironment(), new TestHostApplicationLifetime(), new ConfigurationBuilder().Build(), loggerFactory.CreateLogger<
DashboardServiceImpl
>());
350
var
dashboardService = new DashboardServiceImpl(dashboardServiceData, new TestHostEnvironment(), new TestHostApplicationLifetime(), new ConfigurationBuilder().Build(), loggerFactory.CreateLogger<
DashboardServiceImpl
>());
409
var
dashboardService = new DashboardServiceImpl(dashboardServiceData, new TestHostEnvironment(), new TestHostApplicationLifetime(), new ConfigurationBuilder().Build(), loggerFactory.CreateLogger<
DashboardServiceImpl
>());
446
var
dashboardService = new DashboardServiceImpl(dashboardServiceData, new TestHostEnvironment(), new TestHostApplicationLifetime(), new ConfigurationBuilder().Build(), loggerFactory.CreateLogger<
DashboardServiceImpl
>());
501
var
dashboardService = new DashboardServiceImpl(
506
NullLogger<
DashboardServiceImpl
>.Instance);
530
var
dashboardService = new DashboardServiceImpl(
535
NullLogger<
DashboardServiceImpl
>.Instance);
560
var
dashboardService = new DashboardServiceImpl(
565
NullLogger<
DashboardServiceImpl
>.Instance);