Edit

Share via


SerializationHostingExtensions.AddNewtonsoftJsonSerializer Method

Definition

Overloads

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

Adds support for serializing and deserializing values using Newtonsoft.Json.JsonSerializer.

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

Adds support for serializing and deserializing values using Newtonsoft.Json.JsonSerializer.

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

Adds support for serializing and deserializing values using Newtonsoft.Json.JsonSerializer.

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

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

Adds support for serializing and deserializing values using 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

Parameters

serializerBuilder
ISerializerBuilder

The serializer builder.

isSupported
Func<Type,Boolean>

A delegate used to indicate which types should be serialized and copied by this codec.

jsonSerializerSettings
Newtonsoft.Json.JsonSerializerSettings

The JSON serializer settings.

Returns

Applies to

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

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

Adds support for serializing and deserializing values using 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

Parameters

serializerBuilder
ISerializerBuilder

The serializer builder.

isSupported
Func<Type,Boolean>

A delegate used to indicate which types should be serialized and copied by this codec.

configureOptions
Action<OptionsBuilder<NewtonsoftJsonCodecOptions>>

A delegate used to configure the options for the JSON serializer.

Returns

Applies to

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

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

Adds support for serializing and deserializing values using 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

Parameters

serializerBuilder
ISerializerBuilder

The serializer builder.

isSerializable
Func<Type,Boolean>

A delegate used to indicate which types should be serialized by this codec.

isCopyable
Func<Type,Boolean>

A delegate used to indicate which types should be copied by this codec.

configureOptions
Action<OptionsBuilder<NewtonsoftJsonCodecOptions>>

A delegate used to configure the options for the JSON serializer.

Returns

Applies to