SerializationHostingExtensions.AddNewtonsoftJsonSerializer 方法

定义

重载

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

添加了对使用 Newtonsoft.Json.JsonSerializer序列化和反序列化值的支持。

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

添加了对使用 Newtonsoft.Json.JsonSerializer序列化和反序列化值的支持。

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

添加了对使用 Newtonsoft.Json.JsonSerializer序列化和反序列化值的支持。

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

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

添加了对使用 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

参数

serializerBuilder
ISerializerBuilder

序列化程序生成器。

isSupported
Func<Type,Boolean>

用于指示应由此编解码器序列化和复制哪些类型的委托。

jsonSerializerSettings
Newtonsoft.Json.JsonSerializerSettings

JSON 序列化程序设置。

返回

适用于

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

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

添加了对使用 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

参数

serializerBuilder
ISerializerBuilder

序列化程序生成器。

isSupported
Func<Type,Boolean>

用于指示应由此编解码器序列化和复制哪些类型的委托。

configureOptions
Action<OptionsBuilder<NewtonsoftJsonCodecOptions>>

用于配置 JSON 序列化程序选项的委托。

返回

适用于

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

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

添加了对使用 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

参数

serializerBuilder
ISerializerBuilder

序列化程序生成器。

isSerializable
Func<Type,Boolean>

一个委托,用于指示哪些类型应由此编解码器序列化。

isCopyable
Func<Type,Boolean>

用于指示此编解码器应复制哪些类型的委托。

configureOptions
Action<OptionsBuilder<NewtonsoftJsonCodecOptions>>

用于配置 JSON 序列化程序选项的委托。

返回

适用于