1 type derived from NewtonsoftJsonOutputFormatter
Microsoft.AspNetCore.Mvc.NewtonsoftJson.Test (1)
NewtonsoftJsonOutputFormatterTest.cs (1)
552private class TestableJsonOutputFormatter : NewtonsoftJsonOutputFormatter
9 instantiations of NewtonsoftJsonOutputFormatter
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.NewtonsoftJson (1)
DependencyInjection\NewtonsoftJsonMvcOptionsSetup.cs (1)
47options.OutputFormatters.Add(new NewtonsoftJsonOutputFormatter(_jsonOptions.SerializerSettings, _charPool, options, _jsonOptions));
Microsoft.AspNetCore.Mvc.NewtonsoftJson.Test (6)
NewtonsoftJsonOutputFormatterTest.cs (6)
22return new NewtonsoftJsonOutputFormatter(new JsonSerializerSettings(), ArrayPool<char>.Shared, new MvcOptions(), new MvcNewtonsoftJsonOptions()); 76var jsonFormatter = new NewtonsoftJsonOutputFormatter(settings, ArrayPool<char>.Shared, new MvcOptions()); 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());
20 references to NewtonsoftJsonOutputFormatter
BasicWebSite (3)
Controllers\ContentNegotiation\FallbackOnTypeBasedMatchController.cs (2)
14private readonly NewtonsoftJsonOutputFormatter _jsonOutputFormatter; 19_jsonOutputFormatter = mvcOptions.Value.OutputFormatters.OfType<NewtonsoftJsonOutputFormatter>().First();
Controllers\ContentNegotiation\NormalController.cs (1)
18private readonly NewtonsoftJsonOutputFormatter _indentingFormatter;
FormatterWebSite (1)
Controllers\JsonFormatterController.cs (1)
17private readonly NewtonsoftJsonOutputFormatter _indentingFormatter;
Microsoft.AspNetCore.Mvc.FunctionalTests (6)
ApiExplorerTest.cs (6)
861Assert.Equal(typeof(NewtonsoftJsonOutputFormatter).FullName, textJson.FormatterType); 863Assert.Equal(typeof(NewtonsoftJsonOutputFormatter).FullName, applicationJson.FormatterType); 884Assert.Equal(typeof(NewtonsoftJsonOutputFormatter).FullName, applicationJson.FormatterType); 887Assert.Equal(typeof(NewtonsoftJsonOutputFormatter).FullName, textJson.FormatterType); 912Assert.Equal(typeof(NewtonsoftJsonOutputFormatter).FullName, responseFormat.FormatterType); 941[InlineData("Action", "application/json", typeof(NewtonsoftJsonOutputFormatter))]
Microsoft.AspNetCore.Mvc.NewtonsoftJson (5)
MvcNewtonsoftJsonOptions.cs (1)
63/// <see cref="NewtonsoftJsonOutputFormatter"/> buffers the output stream by default, buffering up to a certain amount in memory, before buffering to disk.
NewtonsoftJsonOutputFormatter.cs (4)
27/// Initializes a new <see cref="NewtonsoftJsonOutputFormatter"/> instance. 45/// Initializes a new <see cref="NewtonsoftJsonOutputFormatter"/> instance. 83/// <see cref="NewtonsoftJsonOutputFormatter"/> has been used will have no effect. 155var logger = context.HttpContext.RequestServices.GetRequiredService<ILogger<NewtonsoftJsonOutputFormatter>>();
Microsoft.AspNetCore.Mvc.NewtonsoftJson.Test (5)
NewtonsoftJsonOutputFormatterTest.cs (5)
76var jsonFormatter = new NewtonsoftJsonOutputFormatter(settings, ArrayPool<char>.Shared, new MvcOptions()); 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());