Edit

Share via


OrleansJsonSerializer Class

Definition

Utility class for configuring Newtonsoft.Json.JsonSerializerSettings to support Orleans types.

public class OrleansJsonSerializer : Orleans.Serialization.IExternalSerializer
public class OrleansJsonSerializer
type OrleansJsonSerializer = class
    interface IExternalSerializer
type OrleansJsonSerializer = class
Public Class OrleansJsonSerializer
Implements IExternalSerializer
Public Class OrleansJsonSerializer
Inheritance
OrleansJsonSerializer
Implements

Constructors

OrleansJsonSerializer(IOptions<OrleansJsonSerializerOptions>)

Initializes a new instance of the OrleansJsonSerializer class.

OrleansJsonSerializer(IServiceProvider)
OrleansJsonSerializer(SerializationManager, IGrainFactory)

Fields

IndentJsonProperty
TypeNameHandlingProperty
UseFullAssemblyNamesProperty

Methods

DeepCopy(Object, ICopyContext)

Tries to create a copy of source.

Deserialize(Type, IDeserializationContext)

Tries to deserialize an item.

Deserialize(Type, String)

Deserializes an object of the specified expected type from the provided input.

GetDefaultSerializerSettings(ITypeResolver, IGrainFactory)

Returns the default serializer settings.

GetDefaultSerializerSettings(SerializationManager, IGrainFactory)

Returns the default serializer settings.

Initialize(Logger)

Initializes the external serializer. Called once when the serialization manager creates an instance of this type

IsSupportedType(Type)

Informs the serialization manager whether this serializer supports the type for serialization.

Serialize(Object, ISerializationContext, Type)

Serializes an object to a binary stream

Serialize(Object, Type)

Serializes an object to a JSON string.

UpdateSerializerSettings(JsonSerializerSettings, Boolean, Boolean, Nullable<TypeNameHandling>)
UpdateSerializerSettings(JsonSerializerSettings, IProviderConfiguration)

Customises the given serializer settings using provider configuration. Can be used by any provider, allowing the users to use a standard set of configuration attributes.

Applies to