共用方式為


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)

來源:
SerializationHostingExtensions.cs
來源:
SerializationHostingExtensions.cs
來源:
SerializationHostingExtensions.cs
來源:
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>>)

來源:
SerializationHostingExtensions.cs
來源:
SerializationHostingExtensions.cs
來源:
SerializationHostingExtensions.cs
來源:
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>>)

來源:
SerializationHostingExtensions.cs
來源:
SerializationHostingExtensions.cs
來源:
SerializationHostingExtensions.cs
來源:
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 序列化程式選項的委派。

傳回

適用於