6 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\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\GeneratedRouteBuilderExtensions.g.cs (1)
58private static readonly JsonOptions FallbackJsonOptions = new();
Microsoft.AspNetCore.OpenApi (1)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\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();
75 references to JsonOptions
Aspire.Dashboard.Tests (1)
Integration\StartupTests.cs (1)
48var options = app.Services.GetRequiredService<IOptions<Microsoft.AspNetCore.Http.Json.JsonOptions>>().Value.SerializerOptions;
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 (40)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\GeneratedRouteBuilderExtensions.g.cs (37)
58private static readonly JsonOptions FallbackJsonOptions = new(); 93var jsonOptions = serviceProvider?.GetService<IOptions<JsonOptions>>()?.Value ?? FallbackJsonOptions; 213var jsonOptions = serviceProvider?.GetService<IOptions<JsonOptions>>()?.Value ?? FallbackJsonOptions; 396var jsonOptions = serviceProvider?.GetService<IOptions<JsonOptions>>()?.Value ?? FallbackJsonOptions; 514var jsonOptions = serviceProvider?.GetService<IOptions<JsonOptions>>()?.Value ?? FallbackJsonOptions; 698var jsonOptions = serviceProvider?.GetService<IOptions<JsonOptions>>()?.Value ?? FallbackJsonOptions; 815var jsonOptions = serviceProvider?.GetService<IOptions<JsonOptions>>()?.Value ?? FallbackJsonOptions; 961var jsonOptions = serviceProvider?.GetService<IOptions<JsonOptions>>()?.Value ?? FallbackJsonOptions; 1079var jsonOptions = serviceProvider?.GetService<IOptions<JsonOptions>>()?.Value ?? FallbackJsonOptions; 1195var jsonOptions = serviceProvider?.GetService<IOptions<JsonOptions>>()?.Value ?? FallbackJsonOptions; 1310var jsonOptions = serviceProvider?.GetService<IOptions<JsonOptions>>()?.Value ?? FallbackJsonOptions; 1414var jsonOptions = serviceProvider?.GetService<IOptions<JsonOptions>>()?.Value ?? FallbackJsonOptions; 1531var jsonOptions = serviceProvider?.GetService<IOptions<JsonOptions>>()?.Value ?? FallbackJsonOptions; 1636var jsonOptions = serviceProvider?.GetService<IOptions<JsonOptions>>()?.Value ?? FallbackJsonOptions; 1773var jsonOptions = serviceProvider?.GetService<IOptions<JsonOptions>>()?.Value ?? FallbackJsonOptions; 1896var jsonOptions = serviceProvider?.GetService<IOptions<JsonOptions>>()?.Value ?? FallbackJsonOptions; 2013var jsonOptions = serviceProvider?.GetService<IOptions<JsonOptions>>()?.Value ?? FallbackJsonOptions; 2118var jsonOptions = serviceProvider?.GetService<IOptions<JsonOptions>>()?.Value ?? FallbackJsonOptions; 2236var jsonOptions = serviceProvider?.GetService<IOptions<JsonOptions>>()?.Value ?? FallbackJsonOptions;
IdentityBuilderExtensions.cs (1)
104builder.Services.TryAddEnumerable(ServiceDescriptor.Singleton<IConfigureOptions<JsonOptions>, IdentityEndpointsJsonOptionsSetup>());
IdentityEndpointsJsonOptionsSetup.cs (2)
10internal sealed class IdentityEndpointsJsonOptionsSetup : IConfigureOptions<JsonOptions> 12public void Configure(JsonOptions options)
Microsoft.AspNetCore.OpenApi (7)
Extensions\OpenApiServiceCollectionExtensions.cs (1)
141services.TryAddEnumerable(ServiceDescriptor.Singleton<IConfigureOptions<JsonOptions>, OpenApiSchemaJsonOptions>());
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\GeneratedRouteBuilderExtensions.g.cs (3)
58private static readonly JsonOptions FallbackJsonOptions = new(); 87var jsonOptions = serviceProvider?.GetService<IOptions<JsonOptions>>()?.Value ?? FallbackJsonOptions;
Schemas\OpenApiSchemaJsonOptions.cs (2)
9internal sealed class OpenApiSchemaJsonOptions : IConfigureOptions<JsonOptions> 11public void Configure(JsonOptions options)
Services\Schemas\OpenApiSchemaService.cs (1)
32IOptions<JsonOptions> jsonOptions,
Microsoft.AspNetCore.Routing (2)
RequestDelegateFilterPipelineBuilder.cs (2)
22var jsonOptions = serviceProvider?.GetService<IOptions<JsonOptions>>()?.Value ?? new JsonOptions();