DashboardWebApplication.cs (17)
81private readonly IOptionsMonitor<DashboardOptions> _dashboardOptionsMonitor;
127public IOptionsMonitor<DashboardOptions> DashboardOptionsMonitor => _dashboardOptionsMonitor;
218builder.Services.AddOptions<DashboardOptions>()
221builder.Services.AddSingleton<IPostConfigureOptions<DashboardOptions>, PostConfigureDashboardOptions>();
222builder.Services.AddSingleton<IValidateOptions<DashboardOptions>, ValidateDashboardOptions>();
250var validDashboardOptions = TryGetDashboardOptions(builder, dashboardConfigSection, out var dashboardOptions, out var failureMessages);
263_dashboardOptionsMonitor = _app.Services.GetRequiredService<IOptionsMonitor<DashboardOptions>>();
455_dashboardOptionsMonitor = _app.Services.GetRequiredService<IOptionsMonitor<DashboardOptions>>();
642var options = _app.Services.GetRequiredService<IOptionsMonitor<DashboardOptions>>().CurrentValue;
689/// Load <see cref="DashboardOptions"/> from configuration without using DI. This performs
692private static bool TryGetDashboardOptions(WebApplicationBuilder builder, IConfigurationSection dashboardConfigSection, out DashboardOptions dashboardOptions, out IEnumerable<string> failureMessages)
712private void ConfigureKestrelEndpoints(WebApplicationBuilder builder, DashboardOptions dashboardOptions)
843private static void ConfigureAuthentication(WebApplicationBuilder builder, DashboardOptions dashboardOptions)
863var options = context.HttpContext.RequestServices.GetRequiredService<IOptions<DashboardOptions>>().Value;
1033static string ConfigureDefaultAuthScheme(DashboardOptions dashboardOptions)