1 instantiation of RazorComponentsServiceOptions
Microsoft.AspNetCore.Components.Endpoints.Tests (1)
HttpContextFormValueMapperTest.cs (1)
40
var mapper = new HttpContextFormValueMapper(formData, Options.Create<RazorComponentsServiceOptions>(
new
()));
11 references to RazorComponentsServiceOptions
Microsoft.AspNetCore.Components.Endpoints (10)
Builder\OpaqueRedirection.cs (1)
45
var options = httpContext.RequestServices.GetRequiredService<IOptions<
RazorComponentsServiceOptions
>>();
DependencyInjection\DefaultRazorComponentsServiceOptionsConfiguration.cs (2)
18
: IPostConfigureOptions<
RazorComponentsServiceOptions
>
22
public void PostConfigure(string? name,
RazorComponentsServiceOptions
options)
DependencyInjection\RazorComponentsServiceCollectionExtensions.cs (3)
33
/// <param name="configure">An <see cref="Action{RazorComponentOptions}"/> to configure the provided <see cref="
RazorComponentsServiceOptions
"/>.</param>
36
public static IRazorComponentsBuilder AddRazorComponents(this IServiceCollection services, Action<
RazorComponentsServiceOptions
>? configure = null)
68
ServiceDescriptor.Singleton<IPostConfigureOptions<
RazorComponentsServiceOptions
>, DefaultRazorComponentsServiceOptionsConfiguration>());
FormMapping\HttpContextFormValueMapper.cs (1)
25
IOptions<
RazorComponentsServiceOptions
> options)
Rendering\EndpointHtmlRenderer.cs (2)
41
private readonly
RazorComponentsServiceOptions
_options;
56
_options = serviceProvider.GetRequiredService<IOptions<
RazorComponentsServiceOptions
>>().Value;
Rendering\EndpointHtmlRenderer.Streaming.cs (1)
207
var options = httpContext.RequestServices.GetRequiredService<IOptions<
RazorComponentsServiceOptions
>>();
Microsoft.AspNetCore.Components.Endpoints.Tests (1)
HttpContextFormValueMapperTest.cs (1)
40
var mapper = new HttpContextFormValueMapper(formData, Options.Create<
RazorComponentsServiceOptions
>(new()));