9 instantiations of DashboardOptions
Aspire.Hosting.Tests (9)
Dashboard\DashboardLifecycleHookTests.cs (8)
128var dashboardOptions = Options.Create(new DashboardOptions 177var dashboardOptions = Options.Create(new DashboardOptions 218var dashboardOptions = Options.Create(new DashboardOptions 312var dashboardOptions = Options.Create(new DashboardOptions { DashboardPath = dashboardDll }); 395var dashboardOptions = Options.Create(new DashboardOptions { DashboardPath = dashboardExe }); 464var dashboardOptions = Options.Create(new DashboardOptions { DashboardPath = dashboardExe }); 531var dashboardOptions = Options.Create(new DashboardOptions { DashboardPath = dashboardDll }); 575dashboardOptions ??= Options.Create(new DashboardOptions { DashboardPath = "test.dll" });
Orchestrator\ApplicationOrchestratorTests.cs (1)
492Options.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)
33IOptions<DashboardOptions> dashboardOptions, 365var options = dashboardOptions.Value; 542var 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)
466_innerBuilder.Services.TryAddEnumerable(ServiceDescriptor.Singleton<IConfigureOptions<DashboardOptions>, ConfigureDefaultDashboardOptions>()); 467_innerBuilder.Services.TryAddEnumerable(ServiceDescriptor.Singleton<IValidateOptions<DashboardOptions>, ValidateDashboardOptions>());
Orchestrator\ApplicationOrchestrator.cs (1)
50IOptions<DashboardOptions> dashboardOptions,
Aspire.Hosting.Tests (5)
Dashboard\DashboardLifecycleHookTests.cs (1)
569IOptions<DashboardOptions>? dashboardOptions = null,
Dashboard\DashboardOptionsTests.cs (2)
32var dashboardOptions = app.Services.GetRequiredService<IOptions<DashboardOptions>>().Value;
Orchestrator\ApplicationOrchestratorTests.cs (1)
463DashboardOptions? dashboardOptions = null)
WithUrlsTests.cs (1)
244builder.Services.Configure<DashboardOptions>(options =>