14 instantiations of DashboardOptions
Aspire.Hosting.Tests (14)
Dashboard\DashboardEventHandlersTests.cs (13)
265var dashboardOptions = new DashboardOptions(); 316var dashboardOptions = Options.Create(new DashboardOptions 368var dashboardOptions = Options.Create(new DashboardOptions 410var dashboardOptions = Options.Create(new DashboardOptions 459var dashboardOptions = Options.Create(new DashboardOptions 541var dashboardOptions = Options.Create(new DashboardOptions 628var dashboardOptions = Options.Create(new DashboardOptions { DashboardPath = dashboardDll }); 712var dashboardOptions = Options.Create(new DashboardOptions { DashboardPath = dashboardExe }); 781var dashboardOptions = Options.Create(new DashboardOptions { DashboardPath = dashboardExe }); 848var dashboardOptions = Options.Create(new DashboardOptions { DashboardPath = dashboardDll }); 895var dashboardOptions = Options.Create(new DashboardOptions { DashboardPath = dashboardExecutable }); 923var dashboardOptions = Options.Create(new DashboardOptions { DashboardPath = dashboardDll }); 950dashboardOptions ??= Options.Create(new DashboardOptions { DashboardPath = typeof(DashboardEventHandlersTests).Assembly.Location });
Orchestrator\ApplicationOrchestratorTests.cs (1)
1194Options.Create(dashboardOptions ?? new()),
26 references to DashboardOptions
Aspire.Hosting (10)
Backchannel\DashboardUrlsHelper.cs (2)
76var dashboardOptions = serviceProvider.GetService<IOptions<DashboardOptions>>()?.Value;
Dashboard\DashboardEventHandlers.cs (4)
32IOptions<DashboardOptions> dashboardOptions, 209var options = dashboardOptions.Value; 352var options = dashboardOptions.Value; 444var options = dashboardOptions.Value;
Dashboard\DashboardOptions.cs (2)
34internal class ConfigureDefaultDashboardOptions(IConfiguration configuration, IOptions<DcpOptions> dcpOptions) : IConfigureOptions<DashboardOptions> 36public void Configure(DashboardOptions options)
DistributedApplicationBuilder.cs (1)
561_innerBuilder.Services.TryAddEnumerable(ServiceDescriptor.Singleton<IConfigureOptions<DashboardOptions>, ConfigureDefaultDashboardOptions>());
Orchestrator\ApplicationOrchestrator.cs (1)
52IOptions<DashboardOptions> dashboardOptions,
Aspire.Hosting.Testing.Tests (4)
DashboardTestingBuilderTests.cs (4)
198var dashboardOptions = app.Services.GetRequiredService<IOptions<DashboardOptions>>().Value; 211var dashboardOptions = app.Services.GetRequiredService<IOptions<DashboardOptions>>().Value;
Aspire.Hosting.Tests (12)
Dashboard\DashboardEventHandlersTests.cs (2)
265var dashboardOptions = new DashboardOptions(); 944IOptions<DashboardOptions>? dashboardOptions = null,
Dashboard\DashboardOptionsTests.cs (6)
30var dashboardOptions = app.Services.GetRequiredService<IOptions<DashboardOptions>>().Value; 47var dashboardOptions = app.Services.GetRequiredService<IOptions<DashboardOptions>>().Value; 75var dashboardOptions = app.Services.GetRequiredService<IOptions<DashboardOptions>>().Value;
Dashboard\DashboardResourceTests.cs (2)
230var dashboardOptions = app.Services.GetRequiredService<IOptions<DashboardOptions>>().Value;
Orchestrator\ApplicationOrchestratorTests.cs (1)
1164DashboardOptions? dashboardOptions = null,
WithUrlsTests.cs (1)
266builder.Services.Configure<DashboardOptions>(options =>