11 instantiations of DashboardService
Aspire.Hosting.Tests (11)
Dashboard\DashboardServiceTests.cs (11)
44
var dashboardService = new
DashboardServiceImpl
(dashboardServiceData, new TestHostEnvironment(), new TestHostApplicationLifetime(), new ConfigurationBuilder().Build(), NullLogger<DashboardServiceImpl>.Instance);
97
var dashboardService = new
DashboardServiceImpl
(dashboardServiceData, new TestHostEnvironment(), new TestHostApplicationLifetime(), new ConfigurationBuilder().Build(), NullLogger<DashboardServiceImpl>.Instance);
149
var dashboardService = new
DashboardServiceImpl
(dashboardServiceData, new TestHostEnvironment(), new TestHostApplicationLifetime(), new ConfigurationBuilder().Build(), loggerFactory.CreateLogger<DashboardServiceImpl>());
234
var dashboardService = new
DashboardServiceImpl
(dashboardServiceData, new TestHostEnvironment(), new TestHostApplicationLifetime(), new ConfigurationBuilder().Build(), loggerFactory.CreateLogger<DashboardServiceImpl>());
304
var dashboardService = new
DashboardServiceImpl
(dashboardServiceData, new TestHostEnvironment(), new TestHostApplicationLifetime(), new ConfigurationBuilder().Build(), loggerFactory.CreateLogger<DashboardServiceImpl>());
351
var dashboardService = new
DashboardServiceImpl
(dashboardServiceData, new TestHostEnvironment(), new TestHostApplicationLifetime(), new ConfigurationBuilder().Build(), loggerFactory.CreateLogger<DashboardServiceImpl>());
410
var dashboardService = new
DashboardServiceImpl
(dashboardServiceData, new TestHostEnvironment(), new TestHostApplicationLifetime(), new ConfigurationBuilder().Build(), loggerFactory.CreateLogger<DashboardServiceImpl>());
447
var dashboardService = new
DashboardServiceImpl
(dashboardServiceData, new TestHostEnvironment(), new TestHostApplicationLifetime(), new ConfigurationBuilder().Build(), loggerFactory.CreateLogger<DashboardServiceImpl>());
502
var dashboardService = new
DashboardServiceImpl
(
531
var dashboardService = new
DashboardServiceImpl
(
561
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
;
34
const int LongLineCharacters =
DashboardServiceImpl
.LogMaxBatchCharacters / 3;
44
var
dashboardService = new DashboardServiceImpl(dashboardServiceData, new TestHostEnvironment(), new TestHostApplicationLifetime(), new ConfigurationBuilder().Build(), NullLogger<
DashboardServiceImpl
>.Instance);
93
const int LongLineCharacters =
DashboardServiceImpl
.LogMaxBatchCharacters / 3;
97
var
dashboardService = new DashboardServiceImpl(dashboardServiceData, new TestHostEnvironment(), new TestHostApplicationLifetime(), new ConfigurationBuilder().Build(), NullLogger<
DashboardServiceImpl
>.Instance);
102
logger.LogInformation(new string('1',
DashboardServiceImpl
.LogMaxBatchCharacters));
120
l => Assert.Equal(
DashboardServiceImpl
.LogMaxBatchCharacters, l.Text.Length));
149
var
dashboardService = new DashboardServiceImpl(dashboardServiceData, new TestHostEnvironment(), new TestHostApplicationLifetime(), new ConfigurationBuilder().Build(), loggerFactory.CreateLogger<
DashboardServiceImpl
>());
234
var
dashboardService = new DashboardServiceImpl(dashboardServiceData, new TestHostEnvironment(), new TestHostApplicationLifetime(), new ConfigurationBuilder().Build(), loggerFactory.CreateLogger<
DashboardServiceImpl
>());
304
var
dashboardService = new DashboardServiceImpl(dashboardServiceData, new TestHostEnvironment(), new TestHostApplicationLifetime(), new ConfigurationBuilder().Build(), loggerFactory.CreateLogger<
DashboardServiceImpl
>());
351
var
dashboardService = new DashboardServiceImpl(dashboardServiceData, new TestHostEnvironment(), new TestHostApplicationLifetime(), new ConfigurationBuilder().Build(), loggerFactory.CreateLogger<
DashboardServiceImpl
>());
410
var
dashboardService = new DashboardServiceImpl(dashboardServiceData, new TestHostEnvironment(), new TestHostApplicationLifetime(), new ConfigurationBuilder().Build(), loggerFactory.CreateLogger<
DashboardServiceImpl
>());
447
var
dashboardService = new DashboardServiceImpl(dashboardServiceData, new TestHostEnvironment(), new TestHostApplicationLifetime(), new ConfigurationBuilder().Build(), loggerFactory.CreateLogger<
DashboardServiceImpl
>());
502
var
dashboardService = new DashboardServiceImpl(
507
NullLogger<
DashboardServiceImpl
>.Instance);
531
var
dashboardService = new DashboardServiceImpl(
536
NullLogger<
DashboardServiceImpl
>.Instance);
561
var
dashboardService = new DashboardServiceImpl(
566
NullLogger<
DashboardServiceImpl
>.Instance);