5 instantiations of JsonOptions
Microsoft.AspNetCore.Diagnostics (1)
DeveloperExceptionPage\DeveloperExceptionPageMiddlewareImpl.cs (1)
80jsonOptions ??= new JsonOptions();
Microsoft.AspNetCore.Http.Results (2)
HttpResultsHelper.cs (1)
159return httpContext.RequestServices.GetService<IOptions<JsonOptions>>()?.Value ?? new JsonOptions();
ServerSentEventsResult.cs (1)
51var jsonOptions = httpContext.RequestServices.GetService<IOptions<JsonOptions>>()?.Value ?? new JsonOptions();
Microsoft.AspNetCore.Identity (1)
_generated\0\GeneratedRouteBuilderExtensions.g.cs (1)
58private static readonly JsonOptions FallbackJsonOptions = new();
Microsoft.AspNetCore.Routing (1)
RequestDelegateFilterPipelineBuilder.cs (1)
22var jsonOptions = serviceProvider?.GetService<IOptions<JsonOptions>>()?.Value ?? new JsonOptions();
51 references to JsonOptions
Microsoft.AspNetCore.Authentication.BearerToken (4)
BearerTokenConfigureJsonOptions.cs (2)
9internal sealed class BearerTokenConfigureJsonOptions : IConfigureOptions<JsonOptions> 11public void Configure(JsonOptions options)
BearerTokenExtensions.cs (1)
68builder.Services.TryAddEnumerable(ServiceDescriptor.Singleton<IConfigureOptions<JsonOptions>, BearerTokenConfigureJsonOptions>());
BearerTokenHandler.cs (1)
86var typeInfo = httpContext.RequestServices.GetService<IOptions<JsonOptions>>()
Microsoft.AspNetCore.Diagnostics (2)
DeveloperExceptionPage\DeveloperExceptionPageMiddlewareImpl.cs (2)
53IOptions<JsonOptions>? jsonOptions = null, 77private static ExtensionsExceptionJsonContext CreateSerializationContext(JsonOptions? jsonOptions)
Microsoft.AspNetCore.Http.Extensions (14)
DefaultProblemDetailsWriter.cs (1)
20public DefaultProblemDetailsWriter(IOptions<ProblemDetailsOptions> options, IOptions<JsonOptions> jsonOptions)
HttpJsonServiceExtensions.cs (4)
17/// <see cref="JsonOptions"/> uses default values from <c>JsonSerializerDefaults.Web</c>. 21/// <see cref="JsonOptions"/>, uses default values from <c>JsonSerializerDefaults.Web</c>.</param> 23public static IServiceCollection ConfigureHttpJsonOptions(this IServiceCollection services, Action<JsonOptions> configureOptions) 25services.Configure<JsonOptions>(configureOptions);
HttpRequestJsonExtensions.cs (2)
400return httpContext.RequestServices?.GetService<IOptions<JsonOptions>>()?.Value?.SerializerOptions ?? JsonOptions.DefaultSerializerOptions;
HttpResponseJsonExtensions.cs (2)
345return httpContext.RequestServices?.GetService<IOptions<JsonOptions>>()?.Value?.SerializerOptions ?? JsonOptions.DefaultSerializerOptions;
ProblemDetailsJsonOptionsSetup.cs (2)
15internal sealed class ProblemDetailsJsonOptionsSetup : IConfigureOptions<JsonOptions> 17public void Configure(JsonOptions options)
ProblemDetailsServiceCollectionExtensions.cs (1)
44services.TryAddEnumerable(ServiceDescriptor.Singleton<IConfigureOptions<JsonOptions>, ProblemDetailsJsonOptionsSetup>());
RequestDelegateFactory.cs (2)
278var jsonSerializerOptions = serviceProvider.GetService<IOptions<JsonOptions>>()?.Value.SerializerOptions ?? JsonOptions.DefaultSerializerOptions;
Microsoft.AspNetCore.Http.Results (5)
HttpResultsHelper.cs (2)
156private static JsonOptions ResolveJsonOptions(HttpContext httpContext) 159return httpContext.RequestServices.GetService<IOptions<JsonOptions>>()?.Value ?? new JsonOptions();
ServerSentEventsResult.cs (3)
51var jsonOptions = httpContext.RequestServices.GetService<IOptions<JsonOptions>>()?.Value ?? new JsonOptions(); 66private static void FormatSseItem(SseItem<T> item, IBufferWriter<byte> writer, JsonOptions jsonOptions)
Microsoft.AspNetCore.Identity (24)
_generated\0\GeneratedRouteBuilderExtensions.g.cs (21)
58private static readonly JsonOptions FallbackJsonOptions = new(); 91var jsonOptions = serviceProvider?.GetService<IOptions<JsonOptions>>()?.Value ?? FallbackJsonOptions; 211var jsonOptions = serviceProvider?.GetService<IOptions<JsonOptions>>()?.Value ?? FallbackJsonOptions; 395var jsonOptions = serviceProvider?.GetService<IOptions<JsonOptions>>()?.Value ?? FallbackJsonOptions; 512var jsonOptions = serviceProvider?.GetService<IOptions<JsonOptions>>()?.Value ?? FallbackJsonOptions; 658var jsonOptions = serviceProvider?.GetService<IOptions<JsonOptions>>()?.Value ?? FallbackJsonOptions; 776var jsonOptions = serviceProvider?.GetService<IOptions<JsonOptions>>()?.Value ?? FallbackJsonOptions; 892var jsonOptions = serviceProvider?.GetService<IOptions<JsonOptions>>()?.Value ?? FallbackJsonOptions; 1009var jsonOptions = serviceProvider?.GetService<IOptions<JsonOptions>>()?.Value ?? FallbackJsonOptions; 1126var jsonOptions = serviceProvider?.GetService<IOptions<JsonOptions>>()?.Value ?? FallbackJsonOptions; 1231var jsonOptions = serviceProvider?.GetService<IOptions<JsonOptions>>()?.Value ?? FallbackJsonOptions;
IdentityBuilderExtensions.cs (1)
103builder.Services.TryAddEnumerable(ServiceDescriptor.Singleton<IConfigureOptions<JsonOptions>, IdentityEndpointsJsonOptionsSetup>());
IdentityEndpointsJsonOptionsSetup.cs (2)
10internal sealed class IdentityEndpointsJsonOptionsSetup : IConfigureOptions<JsonOptions> 12public void Configure(JsonOptions options)
Microsoft.AspNetCore.Routing (2)
RequestDelegateFilterPipelineBuilder.cs (2)
22var jsonOptions = serviceProvider?.GetService<IOptions<JsonOptions>>()?.Value ?? new JsonOptions();