18 references to RazorComponentsServiceOptions
Microsoft.AspNetCore.Components.Endpoints (18)
Builder\OpaqueRedirection.cs (1)
45var options = httpContext.RequestServices.GetRequiredService<IOptions<RazorComponentsServiceOptions>>();
CacheView\HybridCacheViewStore.cs (1)
64: options.ExpiresAfter ?? RazorComponentsServiceOptions.DefaultCacheViewExpiration;
CacheView\MemoryCacheViewStore.cs (2)
17public MemoryCacheViewStore(IOptions<RazorComponentsServiceOptions> options, ILogger<MemoryCacheViewStore> logger) 89entryOptions.AbsoluteExpirationRelativeToNow = options.ExpiresAfter ?? RazorComponentsServiceOptions.DefaultCacheViewExpiration;
DependencyInjection\DefaultRazorComponentsServiceOptionsConfiguration.cs (2)
18: IPostConfigureOptions<RazorComponentsServiceOptions> 22public void PostConfigure(string? name, RazorComponentsServiceOptions options)
DependencyInjection\RazorComponentsServiceCollectionExtensions.cs (5)
34/// <param name="configure">An <see cref="Action{RazorComponentOptions}"/> to configure the provided <see cref="RazorComponentsServiceOptions"/>.</param> 37public static IRazorComponentsBuilder AddRazorComponents(this IServiceCollection services, Action<RazorComponentsServiceOptions>? configure = null) 69ServiceDescriptor.Singleton<IPostConfigureOptions<RazorComponentsServiceOptions>, DefaultRazorComponentsServiceOptionsConfiguration>()); 80var options = sp.GetRequiredService<IOptions<RazorComponentsServiceOptions>>().Value;
FormMapping\HttpContextFormValueMapper.cs (1)
25IOptions<RazorComponentsServiceOptions> options)
Rendering\EndpointHtmlRenderer.cs (2)
42private readonly RazorComponentsServiceOptions _options; 61_options = serviceProvider.GetRequiredService<IOptions<RazorComponentsServiceOptions>>().Value;
Rendering\EndpointHtmlRenderer.Streaming.cs (1)
211var options = httpContext.RequestServices.GetRequiredService<IOptions<RazorComponentsServiceOptions>>();
TempData\CookieTempDataProvider.cs (2)
23private readonly RazorComponentsServiceOptions _options; 29IOptions<RazorComponentsServiceOptions> options,
TempData\TempDataProviderServiceCollectionExtensions.cs (1)
22var options = serviceProvider.GetRequiredService<IOptions<RazorComponentsServiceOptions>>();