8 instantiations of DashboardOptions
Aspire.Hosting.Tests (8)
Dashboard\DashboardLifecycleHookTests.cs (7)
125var dashboardOptions = Options.Create(new DashboardOptions 174var dashboardOptions = Options.Create(new DashboardOptions 237var dashboardOptions = Options.Create(new DashboardOptions { DashboardPath = dashboardDll }); 325var dashboardOptions = Options.Create(new DashboardOptions { DashboardPath = dashboardExe }); 397var dashboardOptions = Options.Create(new DashboardOptions { DashboardPath = dashboardExe }); 467var dashboardOptions = Options.Create(new DashboardOptions { DashboardPath = dashboardDll }); 510dashboardOptions ??= Options.Create(new DashboardOptions { DashboardPath = "test.dll" });
Orchestrator\ApplicationOrchestratorTests.cs (1)
490Options.Create(dashboardOptions ?? new()),
17 references to DashboardOptions
Aspire.Hosting (12)
Backchannel\AppHostRpcTarget.cs (1)
191var dashboardOptions = serviceProvider.GetService<IOptions<DashboardOptions>>();
Backchannel\AuxiliaryBackchannelRpcTarget.cs (1)
115var dashboardOptions = serviceProvider.GetService<IOptions<DashboardOptions>>();
Dashboard\DashboardEventHandlers.cs (3)
32IOptions<DashboardOptions> dashboardOptions, 371var options = dashboardOptions.Value; 493var 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)
445_innerBuilder.Services.TryAddEnumerable(ServiceDescriptor.Singleton<IConfigureOptions<DashboardOptions>, ConfigureDefaultDashboardOptions>()); 446_innerBuilder.Services.TryAddEnumerable(ServiceDescriptor.Singleton<IValidateOptions<DashboardOptions>, ValidateDashboardOptions>());
Orchestrator\ApplicationOrchestrator.cs (1)
50IOptions<DashboardOptions> dashboardOptions,
Aspire.Hosting.Tests (5)
Dashboard\DashboardLifecycleHookTests.cs (1)
506IOptions<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 =>