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