9 instantiations of DashboardOptions
Aspire.Hosting.Tests (9)
Dashboard\DashboardLifecycleHookTests.cs (8)
125var dashboardOptions = Options.Create(new DashboardOptions 174var dashboardOptions = Options.Create(new DashboardOptions 215var dashboardOptions = Options.Create(new DashboardOptions 309var dashboardOptions = Options.Create(new DashboardOptions { DashboardPath = dashboardDll }); 397var dashboardOptions = Options.Create(new DashboardOptions { DashboardPath = dashboardExe }); 469var dashboardOptions = Options.Create(new DashboardOptions { DashboardPath = dashboardExe }); 539var dashboardOptions = Options.Create(new DashboardOptions { DashboardPath = dashboardDll }); 584dashboardOptions ??= Options.Create(new DashboardOptions { DashboardPath = "test.dll" });
Orchestrator\ApplicationOrchestratorTests.cs (1)
491Options.Create(dashboardOptions ?? new()),
18 references to DashboardOptions
Aspire.Hosting (13)
Backchannel\AuxiliaryBackchannelRpcTarget.cs (1)
312var dashboardOptions = serviceProvider.GetService<IOptions<DashboardOptions>>();
Backchannel\DashboardUrlsHelper.cs (2)
50var dashboardOptions = serviceProvider.GetService<IOptions<DashboardOptions>>()?.Value;
Dashboard\DashboardEventHandlers.cs (3)
31IOptions<DashboardOptions> dashboardOptions, 373var options = dashboardOptions.Value; 517var options = dashboardOptions.Value;
Dashboard\DashboardOptions.cs (4)
25internal class ConfigureDefaultDashboardOptions(IConfiguration configuration, IOptions<DcpOptions> dcpOptions) : IConfigureOptions<DashboardOptions> 27public void Configure(DashboardOptions options) 48internal class ValidateDashboardOptions : IValidateOptions<DashboardOptions> 50public ValidateOptionsResult Validate(string? name, DashboardOptions options)
DistributedApplicationBuilder.cs (2)
455_innerBuilder.Services.TryAddEnumerable(ServiceDescriptor.Singleton<IConfigureOptions<DashboardOptions>, ConfigureDefaultDashboardOptions>()); 456_innerBuilder.Services.TryAddEnumerable(ServiceDescriptor.Singleton<IValidateOptions<DashboardOptions>, ValidateDashboardOptions>());
Orchestrator\ApplicationOrchestrator.cs (1)
50IOptions<DashboardOptions> dashboardOptions,
Aspire.Hosting.Tests (5)
Dashboard\DashboardLifecycleHookTests.cs (1)
578IOptions<DashboardOptions>? dashboardOptions = null,
Dashboard\DashboardOptionsTests.cs (2)
31var dashboardOptions = app.Services.GetRequiredService<IOptions<DashboardOptions>>().Value;
Orchestrator\ApplicationOrchestratorTests.cs (1)
462DashboardOptions? dashboardOptions = null)
WithUrlsTests.cs (1)
243builder.Services.Configure<DashboardOptions>(options =>