35 instantiations of MvcNewtonsoftJsonOptions
BasicWebSite (1)
Controllers\ContentNegotiation\NormalController.cs (1)
28_indentingFormatter = new NewtonsoftJsonOutputFormatter(_indentedSettings, charPool, new MvcOptions(), new MvcNewtonsoftJsonOptions());
FormatterWebSite (1)
Controllers\JsonFormatterController.cs (1)
27_indentingFormatter = new NewtonsoftJsonOutputFormatter(_indentedSettings, charPool, new MvcOptions(), new MvcNewtonsoftJsonOptions());
Microsoft.AspNetCore.Mvc.Core.Test (2)
ModelBinding\Binders\BodyModelBinderTests.cs (2)
772: base(GetLogger(), new JsonSerializerSettings(), ArrayPool<char>.Shared, new DefaultObjectPoolProvider(), new MvcOptions(), new MvcNewtonsoftJsonOptions() 842: base(GetLogger(), new JsonSerializerSettings(), ArrayPool<char>.Shared, new DefaultObjectPoolProvider(), new MvcOptions(), new MvcNewtonsoftJsonOptions()
Microsoft.AspNetCore.Mvc.IntegrationTests (1)
TestMvcOptions.cs (1)
38var jsonOptions = Options.Create(new MvcNewtonsoftJsonOptions());
Microsoft.AspNetCore.Mvc.NewtonsoftJson.Test (30)
DependencyInjection\MvcNewtonsoftJsonOptionsExtensionsTest.cs (5)
17var options = new MvcNewtonsoftJsonOptions(); 161var options = new MvcNewtonsoftJsonOptions(); 216var options = new MvcNewtonsoftJsonOptions(); 230var options = new MvcNewtonsoftJsonOptions(); 244var options = new MvcNewtonsoftJsonOptions();
JsonResultTest.cs (1)
48Options.Create(new MvcNewtonsoftJsonOptions()),
NewtonsoftJsonHelperTest.cs (2)
19var options = new MvcNewtonsoftJsonOptions(); 90var options = new MvcNewtonsoftJsonOptions();
NewtonsoftJsonInputFormatterTest.cs (12)
35new MvcNewtonsoftJsonOptions()); 71new MvcNewtonsoftJsonOptions()); 107new MvcNewtonsoftJsonOptions()); 320new MvcNewtonsoftJsonOptions() 355new MvcNewtonsoftJsonOptions()); 386new MvcNewtonsoftJsonOptions()); 417new MvcNewtonsoftJsonOptions()); 446new MvcNewtonsoftJsonOptions()); 494new MvcNewtonsoftJsonOptions() { ReadJsonWithRequestCulture = true }); 542new MvcNewtonsoftJsonOptions()); 566: base(GetLogger(), settings, ArrayPool<char>.Shared, objectPoolProvider, new MvcOptions(), new MvcNewtonsoftJsonOptions()) 591new MvcNewtonsoftJsonOptions()
NewtonsoftJsonOutputFormatterTest.cs (6)
22return new NewtonsoftJsonOutputFormatter(new JsonSerializerSettings(), ArrayPool<char>.Shared, new MvcOptions(), new MvcNewtonsoftJsonOptions()); 106var jsonFormatter = new NewtonsoftJsonOutputFormatter(settings, ArrayPool<char>.Shared, new MvcOptions(), new MvcNewtonsoftJsonOptions() 133var jsonFormatter = new NewtonsoftJsonOutputFormatter(settings, ArrayPool<char>.Shared, new MvcOptions(), new MvcNewtonsoftJsonOptions()); 351var formatter = new NewtonsoftJsonOutputFormatter(new JsonSerializerSettings(), ArrayPool<char>.Shared, new MvcOptions(), new MvcNewtonsoftJsonOptions()); 382var formatter = new NewtonsoftJsonOutputFormatter(new JsonSerializerSettings(), ArrayPool<char>.Shared, new MvcOptions(), new MvcNewtonsoftJsonOptions()); 555: base(serializerSettings, ArrayPool<char>.Shared, new MvcOptions(), new MvcNewtonsoftJsonOptions())
NewtonsoftJsonPatchInputFormatterTest.cs (3)
33new MvcNewtonsoftJsonOptions()); 70new MvcNewtonsoftJsonOptions()); 235new MvcNewtonsoftJsonOptions()
NewtonsoftJsonResultExecutorTest.cs (1)
22Options.Create(new MvcNewtonsoftJsonOptions()),
57 references to MvcNewtonsoftJsonOptions
Microsoft.AspNetCore.Mvc.IntegrationTests (4)
BodyValidationIntegrationTests.cs (4)
453var options = testContext.GetService<IOptions<MvcNewtonsoftJsonOptions>>().Value; 559var options = testContext.GetService<IOptions<MvcNewtonsoftJsonOptions>>().Value;
Microsoft.AspNetCore.Mvc.NewtonsoftJson (32)
DependencyInjection\MvcNewtonsoftJsonOptionsExtensions.cs (8)
23/// <param name="options"><see cref="MvcNewtonsoftJsonOptions"/></param> 25/// <returns><see cref="MvcNewtonsoftJsonOptions"/> with camel case settings.</returns> 26public static MvcNewtonsoftJsonOptions UseCamelCasing(this MvcNewtonsoftJsonOptions options, bool processDictionaryKeys) 59/// <param name="options"><see cref="MvcNewtonsoftJsonOptions"/></param> 60/// <returns><see cref="MvcNewtonsoftJsonOptions"/> with member casing settings.</returns> 61public static MvcNewtonsoftJsonOptions UseMemberCasing(this MvcNewtonsoftJsonOptions options)
DependencyInjection\NewtonsoftJsonMvcBuilderExtensions.cs (2)
30/// <param name="setupAction">Callback to configure <see cref="MvcNewtonsoftJsonOptions"/>.</param> 34Action<MvcNewtonsoftJsonOptions> setupAction)
DependencyInjection\NewtonsoftJsonMvcCoreBuilderExtensions.cs (2)
39/// <param name="setupAction">Callback to configure <see cref="MvcNewtonsoftJsonOptions"/>.</param> 43Action<MvcNewtonsoftJsonOptions> setupAction)
DependencyInjection\NewtonsoftJsonMvcOptionsSetup.cs (2)
23private readonly MvcNewtonsoftJsonOptions _jsonOptions; 29IOptions<MvcNewtonsoftJsonOptions> jsonOptions,
NewtonsoftJsonHelper.cs (2)
25/// <param name="options">The <see cref="MvcNewtonsoftJsonOptions"/>.</param> 30public NewtonsoftJsonHelper(IOptions<MvcNewtonsoftJsonOptions> options, ArrayPool<char> charPool)
NewtonsoftJsonInputFormatter.cs (4)
26private readonly MvcNewtonsoftJsonOptions _jsonOptions; 36/// (<see cref="MvcNewtonsoftJsonOptions.SerializerSettings"/>) or an instance 42/// <param name="jsonOptions">The <see cref="MvcNewtonsoftJsonOptions"/>.</param> 49MvcNewtonsoftJsonOptions jsonOptions)
NewtonsoftJsonOutputFormatter.cs (6)
22private MvcNewtonsoftJsonOptions? _jsonOptions; 31/// (<see cref="MvcNewtonsoftJsonOptions.SerializerSettings"/>) or an instance 49/// (<see cref="MvcNewtonsoftJsonOptions.SerializerSettings"/>) or an instance 54/// <param name="jsonOptions">The <see cref="MvcNewtonsoftJsonOptions"/>.</param> 59MvcNewtonsoftJsonOptions? jsonOptions) 140_jsonOptions ??= context.HttpContext.RequestServices.GetRequiredService<IOptions<MvcNewtonsoftJsonOptions>>().Value;
NewtonsoftJsonPatchInputFormatter.cs (3)
25/// (<see cref="MvcNewtonsoftJsonOptions.SerializerSettings"/>) or an instance 31/// <param name="jsonOptions">The <see cref="MvcNewtonsoftJsonOptions"/>.</param> 38MvcNewtonsoftJsonOptions jsonOptions)
NewtonsoftJsonResultExecutor.cs (3)
30private readonly MvcNewtonsoftJsonOptions _jsonOptions; 40/// <param name="jsonOptions">Accessor to <see cref="MvcNewtonsoftJsonOptions"/>.</param> 46IOptions<MvcNewtonsoftJsonOptions> jsonOptions,
Microsoft.AspNetCore.Mvc.NewtonsoftJson.Test (21)
DependencyInjection\MvcNewtonsoftJsonOptionsExtensionsTest.cs (16)
17var options = new MvcNewtonsoftJsonOptions(); 37var options = CreateDefaultMvcJsonOptions().UseCamelCasing(processDictionaryKeys: true); 56var options = CreateDefaultMvcJsonOptions().UseCamelCasing(processDictionaryKeys: true); 71var options = CreateDefaultMvcJsonOptions().UseCamelCasing(processDictionaryKeys: true); 86var options = CreateDefaultMvcJsonOptions().UseCamelCasing(processDictionaryKeys: true); 105var options = CreateDefaultMvcJsonOptions().UseCamelCasing(processDictionaryKeys: true); 124var options = CreateDefaultMvcJsonOptions().UseCamelCasing(processDictionaryKeys: false); 143var options = CreateDefaultMvcJsonOptions().UseMemberCasing(); 161var options = new MvcNewtonsoftJsonOptions(); 181var options = CreateDefaultMvcJsonOptions().UseMemberCasing(); 196var options = CreateDefaultMvcJsonOptions().UseMemberCasing(); 216var options = new MvcNewtonsoftJsonOptions(); 230var options = new MvcNewtonsoftJsonOptions(); 242private MvcNewtonsoftJsonOptions CreateDefaultMvcJsonOptions() 244var options = new MvcNewtonsoftJsonOptions(); 249private static string SerializeToJson(MvcNewtonsoftJsonOptions options, object value)
DependencyInjection\NewtonsoftJsonMvcBuilderExtensionsTest.cs (1)
26Assert.Single(services, d => d.ServiceType == typeof(IConfigureOptions<MvcNewtonsoftJsonOptions>));
DependencyInjection\NewtonsoftJsonMvcCoreBuilderExtensionsTest.cs (1)
30Assert.Single(services, d => d.ServiceType == typeof(IConfigureOptions<MvcNewtonsoftJsonOptions>));
NewtonsoftJsonHelperTest.cs (2)
19var options = new MvcNewtonsoftJsonOptions(); 90var options = new MvcNewtonsoftJsonOptions();
NewtonsoftJsonOutputFormatterTest.cs (1)
61.Configure<MvcNewtonsoftJsonOptions>(o =>