DashboardWebApplication.cs (17)
82private readonly IOptionsMonitor<DashboardOptions> _dashboardOptionsMonitor;
128public IOptionsMonitor<DashboardOptions> DashboardOptionsMonitor => _dashboardOptionsMonitor;
227builder.Services.AddOptions<DashboardOptions>()
230builder.Services.AddSingleton<IPostConfigureOptions<DashboardOptions>, PostConfigureDashboardOptions>();
231builder.Services.AddSingleton<IValidateOptions<DashboardOptions>, ValidateDashboardOptions>();
260var validDashboardOptions = TryGetDashboardOptions(builder, dashboardConfigSection, out var dashboardOptions, out var failureMessages);
273_dashboardOptionsMonitor = _app.Services.GetRequiredService<IOptionsMonitor<DashboardOptions>>();
476_dashboardOptionsMonitor = _app.Services.GetRequiredService<IOptionsMonitor<DashboardOptions>>();
664var options = _app.Services.GetRequiredService<IOptionsMonitor<DashboardOptions>>().CurrentValue;
709/// Load <see cref="DashboardOptions"/> from configuration without using DI. This performs
712private static bool TryGetDashboardOptions(WebApplicationBuilder builder, IConfigurationSection dashboardConfigSection, out DashboardOptions dashboardOptions, out IEnumerable<string> failureMessages)
732private void ConfigureKestrelEndpoints(WebApplicationBuilder builder, DashboardOptions dashboardOptions)
863private static void ConfigureAuthentication(WebApplicationBuilder builder, DashboardOptions dashboardOptions)
883var options = context.HttpContext.RequestServices.GetRequiredService<IOptions<DashboardOptions>>().Value;
1053static string ConfigureDefaultAuthScheme(DashboardOptions dashboardOptions)