Compartilhar via


SerializationHostingExtensions.AddNewtonsoftJsonSerializer Método

Definição

Sobrecargas

AddNewtonsoftJsonSerializer(ISerializerBuilder, Func<Type,Boolean>, JsonSerializerSettings)

Adiciona suporte para serializar e desserializar valores usando Newtonsoft.Json.JsonSerializer.

AddNewtonsoftJsonSerializer(ISerializerBuilder, Func<Type,Boolean>, Action<OptionsBuilder<NewtonsoftJsonCodecOptions>>)

Adiciona suporte para serializar e desserializar valores usando Newtonsoft.Json.JsonSerializer.

AddNewtonsoftJsonSerializer(ISerializerBuilder, Func<Type,Boolean>, Func<Type,Boolean>, Action<OptionsBuilder<NewtonsoftJsonCodecOptions>>)

Adiciona suporte para serializar e desserializar valores usando Newtonsoft.Json.JsonSerializer.

AddNewtonsoftJsonSerializer(ISerializerBuilder, Func<Type,Boolean>, JsonSerializerSettings)

Origem:
SerializationHostingExtensions.cs
Origem:
SerializationHostingExtensions.cs
Origem:
SerializationHostingExtensions.cs
Origem:
SerializationHostingExtensions.cs

Adiciona suporte para serializar e desserializar valores usando Newtonsoft.Json.JsonSerializer.

public static Orleans.Serialization.ISerializerBuilder AddNewtonsoftJsonSerializer (this Orleans.Serialization.ISerializerBuilder serializerBuilder, Func<Type,bool> isSupported, Newtonsoft.Json.JsonSerializerSettings jsonSerializerSettings = default);
static member AddNewtonsoftJsonSerializer : Orleans.Serialization.ISerializerBuilder * Func<Type, bool> * Newtonsoft.Json.JsonSerializerSettings -> Orleans.Serialization.ISerializerBuilder
<Extension()>
Public Function AddNewtonsoftJsonSerializer (serializerBuilder As ISerializerBuilder, isSupported As Func(Of Type, Boolean), Optional jsonSerializerSettings As JsonSerializerSettings = Nothing) As ISerializerBuilder

Parâmetros

serializerBuilder
ISerializerBuilder

O construtor do serializador.

isSupported
Func<Type,Boolean>

Um delegado usado para indicar quais tipos devem ser serializados e copiados por esse codec.

jsonSerializerSettings
Newtonsoft.Json.JsonSerializerSettings

As configurações do serializador JSON.

Retornos

Aplica-se a

AddNewtonsoftJsonSerializer(ISerializerBuilder, Func<Type,Boolean>, Action<OptionsBuilder<NewtonsoftJsonCodecOptions>>)

Origem:
SerializationHostingExtensions.cs
Origem:
SerializationHostingExtensions.cs
Origem:
SerializationHostingExtensions.cs
Origem:
SerializationHostingExtensions.cs

Adiciona suporte para serializar e desserializar valores usando Newtonsoft.Json.JsonSerializer.

public static Orleans.Serialization.ISerializerBuilder AddNewtonsoftJsonSerializer (this Orleans.Serialization.ISerializerBuilder serializerBuilder, Func<Type,bool> isSupported, Action<Microsoft.Extensions.Options.OptionsBuilder<Orleans.Serialization.NewtonsoftJsonCodecOptions>> configureOptions);
static member AddNewtonsoftJsonSerializer : Orleans.Serialization.ISerializerBuilder * Func<Type, bool> * Action<Microsoft.Extensions.Options.OptionsBuilder<Orleans.Serialization.NewtonsoftJsonCodecOptions>> -> Orleans.Serialization.ISerializerBuilder
<Extension()>
Public Function AddNewtonsoftJsonSerializer (serializerBuilder As ISerializerBuilder, isSupported As Func(Of Type, Boolean), configureOptions As Action(Of OptionsBuilder(Of NewtonsoftJsonCodecOptions))) As ISerializerBuilder

Parâmetros

serializerBuilder
ISerializerBuilder

O construtor do serializador.

isSupported
Func<Type,Boolean>

Um delegado usado para indicar quais tipos devem ser serializados e copiados por esse codec.

configureOptions
Action<OptionsBuilder<NewtonsoftJsonCodecOptions>>

Um delegado usado para configurar as opções para o serializador JSON.

Retornos

Aplica-se a

AddNewtonsoftJsonSerializer(ISerializerBuilder, Func<Type,Boolean>, Func<Type,Boolean>, Action<OptionsBuilder<NewtonsoftJsonCodecOptions>>)

Origem:
SerializationHostingExtensions.cs
Origem:
SerializationHostingExtensions.cs
Origem:
SerializationHostingExtensions.cs
Origem:
SerializationHostingExtensions.cs

Adiciona suporte para serializar e desserializar valores usando Newtonsoft.Json.JsonSerializer.

public static Orleans.Serialization.ISerializerBuilder AddNewtonsoftJsonSerializer (this Orleans.Serialization.ISerializerBuilder serializerBuilder, Func<Type,bool> isSerializable, Func<Type,bool> isCopyable, Action<Microsoft.Extensions.Options.OptionsBuilder<Orleans.Serialization.NewtonsoftJsonCodecOptions>> configureOptions);
static member AddNewtonsoftJsonSerializer : Orleans.Serialization.ISerializerBuilder * Func<Type, bool> * Func<Type, bool> * Action<Microsoft.Extensions.Options.OptionsBuilder<Orleans.Serialization.NewtonsoftJsonCodecOptions>> -> Orleans.Serialization.ISerializerBuilder
<Extension()>
Public Function AddNewtonsoftJsonSerializer (serializerBuilder As ISerializerBuilder, isSerializable As Func(Of Type, Boolean), isCopyable As Func(Of Type, Boolean), configureOptions As Action(Of OptionsBuilder(Of NewtonsoftJsonCodecOptions))) As ISerializerBuilder

Parâmetros

serializerBuilder
ISerializerBuilder

O construtor do serializador.

isSerializable
Func<Type,Boolean>

Um delegado usado para indicar quais tipos devem ser serializados por esse codec.

isCopyable
Func<Type,Boolean>

Um delegado usado para indicar quais tipos devem ser copiados por este codec.

configureOptions
Action<OptionsBuilder<NewtonsoftJsonCodecOptions>>

Um delegado usado para configurar as opções para o serializador JSON.

Retornos

Aplica-se a