8 instantiations of DashboardOptions
Aspire.Hosting.Tests (8)
Dashboard\DashboardLifecycleHookTests.cs (7)
125var dashboardOptions = Options.Create(new DashboardOptions 168var dashboardOptions = Options.Create(new DashboardOptions 231var dashboardOptions = Options.Create(new DashboardOptions { DashboardPath = dashboardDll }); 319var dashboardOptions = Options.Create(new DashboardOptions { DashboardPath = dashboardExe }); 391var dashboardOptions = Options.Create(new DashboardOptions { DashboardPath = dashboardExe }); 461var dashboardOptions = Options.Create(new DashboardOptions { DashboardPath = dashboardDll }); 504dashboardOptions ??= Options.Create(new DashboardOptions { DashboardPath = "test.dll" });
Orchestrator\ApplicationOrchestratorTests.cs (1)
477Options.Create(dashboardOptions ?? new())
16 references to DashboardOptions
Aspire.Hosting (11)
Backchannel\AppHostRpcTarget.cs (1)
143var dashboardOptions = serviceProvider.GetService<IOptions<DashboardOptions>>();
Dashboard\DashboardEventHandlers.cs (3)
30IOptions<DashboardOptions> dashboardOptions, 368var options = dashboardOptions.Value; 490var options = dashboardOptions.Value;
Dashboard\DashboardOptions.cs (4)
24internal class ConfigureDefaultDashboardOptions(IConfiguration configuration, IOptions<DcpOptions> dcpOptions) : IConfigureOptions<DashboardOptions> 26public void Configure(DashboardOptions options) 46internal class ValidateDashboardOptions : IValidateOptions<DashboardOptions> 48public ValidateOptionsResult Validate(string? name, DashboardOptions options)
DistributedApplicationBuilder.cs (2)
409_innerBuilder.Services.TryAddEnumerable(ServiceDescriptor.Singleton<IConfigureOptions<DashboardOptions>, ConfigureDefaultDashboardOptions>()); 410_innerBuilder.Services.TryAddEnumerable(ServiceDescriptor.Singleton<IValidateOptions<DashboardOptions>, ValidateDashboardOptions>());
Orchestrator\ApplicationOrchestrator.cs (1)
49IOptions<DashboardOptions> dashboardOptions)
Aspire.Hosting.Tests (5)
Dashboard\DashboardLifecycleHookTests.cs (1)
500IOptions<DashboardOptions>? dashboardOptions = null
Dashboard\DashboardOptionsTests.cs (2)
31var dashboardOptions = app.Services.GetRequiredService<IOptions<DashboardOptions>>().Value;
Orchestrator\ApplicationOrchestratorTests.cs (1)
452DashboardOptions? dashboardOptions = null)
WithUrlsTests.cs (1)
244builder.Services.Configure<DashboardOptions>(options =>