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 序列化程式選項的委派。