Class NewtonsoftFormatterExtensions
Extends Microsoft.
Inheritance
System.Object
NewtonsoftFormatterExtensions
Namespace: Microsoft.Extensions.DependencyInjection
Assembly: EPiServer.Cms.AspNetCore.dll
Version: 12.0.3Syntax
public static class NewtonsoftFormatterExtensions : Object
Methods
UseNewtonsoftSerialization(IServiceCollection, IEnumerable<Type>, Action<JsonSerializerSettings>)
Registers newtonsoft IJson
Declaration
public static IServiceCollection UseNewtonsoftSerialization(this IServiceCollection services, IEnumerable<Type> types, Action<JsonSerializerSettings> settings = null)
Parameters
Type | Name | Description |
---|---|---|
Microsoft. |
services | |
System. |
types | |
System. |
settings |
Returns
Type | Description |
---|---|
Microsoft. |
UseNewtonsoftSerialization(IServiceCollection, Assembly, Action<JsonSerializerSettings>)
Registers newtonsoft IJson
Declaration
public static IServiceCollection UseNewtonsoftSerialization(this IServiceCollection services, Assembly assembly, Action<JsonSerializerSettings> settings = null)
Parameters
Type | Name | Description |
---|---|---|
Microsoft. |
services | |
System. |
assembly | |
System. |
settings |
Returns
Type | Description |
---|---|
Microsoft. |
UseNewtonsoftSerialization(IServiceCollection, Type, Action<JsonSerializerSettings>)
Registers newtonsoft IJson
Declaration
public static IServiceCollection UseNewtonsoftSerialization(this IServiceCollection services, Type type, Action<JsonSerializerSettings> settings = null)
Parameters
Type | Name | Description |
---|---|---|
Microsoft. |
services | |
System. |
type | |
System. |
settings |
Returns
Type | Description |
---|---|
Microsoft. |