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 }); 392var dashboardOptions = Options.Create(new DashboardOptions { DashboardPath = dashboardExe }); 461var dashboardOptions = Options.Create(new DashboardOptions { DashboardPath = dashboardExe }); 528var dashboardOptions = Options.Create(new DashboardOptions { DashboardPath = dashboardDll }); 572dashboardOptions ??= 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)
402var dashboardOptions = serviceProvider.GetService<IOptions<DashboardOptions>>();
Backchannel\DashboardUrlsHelper.cs (2)
50var dashboardOptions = serviceProvider.GetService<IOptions<DashboardOptions>>()?.Value;
Dashboard\DashboardEventHandlers.cs (3)
32IOptions<DashboardOptions> dashboardOptions, 364var options = dashboardOptions.Value; 508var 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)
456_innerBuilder.Services.TryAddEnumerable(ServiceDescriptor.Singleton<IConfigureOptions<DashboardOptions>, ConfigureDefaultDashboardOptions>()); 457_innerBuilder.Services.TryAddEnumerable(ServiceDescriptor.Singleton<IValidateOptions<DashboardOptions>, ValidateDashboardOptions>());
Orchestrator\ApplicationOrchestrator.cs (1)
50IOptions<DashboardOptions> dashboardOptions,
Aspire.Hosting.Tests (5)
Dashboard\DashboardLifecycleHookTests.cs (1)
566IOptions<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 =>