Compartir a través de


SerializationHostingExtensions.AddJsonSerializer Método

Definición

Sobrecargas

AddJsonSerializer(ISerializerBuilder, Func<Type,Boolean>, JsonSerializerOptions)

Agrega compatibilidad para serializar y deserializar valores mediante JsonSerializer.

AddJsonSerializer(ISerializerBuilder, Func<Type,Boolean>, Func<Type,Boolean>, Action<OptionsBuilder<JsonCodecOptions>>)

Agrega compatibilidad para serializar y deserializar valores mediante JsonSerializer.

AddJsonSerializer(ISerializerBuilder, Func<Type,Boolean>, JsonSerializerOptions)

Source:
SerializationHostingExtensions.cs
Source:
SerializationHostingExtensions.cs
Source:
SerializationHostingExtensions.cs
Source:
SerializationHostingExtensions.cs

Agrega compatibilidad para serializar y deserializar valores mediante JsonSerializer.

public static Orleans.Serialization.ISerializerBuilder AddJsonSerializer (this Orleans.Serialization.ISerializerBuilder serializerBuilder, Func<Type,bool> isSupported, System.Text.Json.JsonSerializerOptions jsonSerializerOptions = default);
static member AddJsonSerializer : Orleans.Serialization.ISerializerBuilder * Func<Type, bool> * System.Text.Json.JsonSerializerOptions -> Orleans.Serialization.ISerializerBuilder
<Extension()>
Public Function AddJsonSerializer (serializerBuilder As ISerializerBuilder, isSupported As Func(Of Type, Boolean), Optional jsonSerializerOptions As JsonSerializerOptions = Nothing) As ISerializerBuilder

Parámetros

serializerBuilder
ISerializerBuilder

Generador de serializadores.

isSupported
Func<Type,Boolean>

Delegado que se usa para indicar qué tipos se deben serializar y copiar mediante este códec.

jsonSerializerOptions
JsonSerializerOptions

Las opciones del serializador JSON.

Se aplica a

AddJsonSerializer(ISerializerBuilder, Func<Type,Boolean>, Func<Type,Boolean>, Action<OptionsBuilder<JsonCodecOptions>>)

Source:
SerializationHostingExtensions.cs
Source:
SerializationHostingExtensions.cs
Source:
SerializationHostingExtensions.cs
Source:
SerializationHostingExtensions.cs

Agrega compatibilidad para serializar y deserializar valores mediante JsonSerializer.

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

Parámetros

serializerBuilder
ISerializerBuilder

Generador de serializadores.

isSerializable
Func<Type,Boolean>

Delegado que se usa para indicar qué tipos se deben serializar mediante este códec.

isCopyable
Func<Type,Boolean>

Delegado que se usa para indicar qué tipos se deben copiar mediante este códec.

configureOptions
Action<OptionsBuilder<JsonCodecOptions>>

Delegado que se usa para configurar las opciones del serializador JSON.

Se aplica a