SerializationHostingExtensions.AddNewtonsoftJsonSerializer 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
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)
添加了对使用 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
序列化程序生成器。
- jsonSerializerSettings
- Newtonsoft.Json.JsonSerializerSettings
JSON 序列化程序设置。
返回
适用于
AddNewtonsoftJsonSerializer(ISerializerBuilder, Func<Type,Boolean>, Action<OptionsBuilder<NewtonsoftJsonCodecOptions>>)
添加了对使用 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
序列化程序生成器。
- configureOptions
- Action<OptionsBuilder<NewtonsoftJsonCodecOptions>>
用于配置 JSON 序列化程序选项的委托。
返回
适用于
AddNewtonsoftJsonSerializer(ISerializerBuilder, Func<Type,Boolean>, Func<Type,Boolean>, Action<OptionsBuilder<NewtonsoftJsonCodecOptions>>)
添加了对使用 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
序列化程序生成器。
- configureOptions
- Action<OptionsBuilder<NewtonsoftJsonCodecOptions>>
用于配置 JSON 序列化程序选项的委托。