JsonCodec Class

Definition

A serialization codec which uses JsonSerializer.

[Orleans.Alias("json")]
public class JsonCodec : Orleans.Serialization.Cloning.IGeneralizedCopier, Orleans.Serialization.ITypeFilter, Orleans.Serialization.Serializers.IGeneralizedCodec
[<Orleans.Alias("json")>]
type JsonCodec = class
    interface IGeneralizedCodec
    interface IFieldCodec
    interface IGeneralizedCopier
    interface IDeepCopier
    interface ITypeFilter
Public Class JsonCodec
Implements IGeneralizedCodec, IGeneralizedCopier, ITypeFilter
Inheritance
JsonCodec
Attributes
Implements

Constructors

JsonCodec(IEnumerable<ICodecSelector>, IEnumerable<ICopierSelector>, IOptions<JsonCodecOptions>)

Initializes a new instance of the JsonCodec class.

Fields

WellKnownAlias

The well-known type alias for this codec.

Explicit Interface Implementations

IDeepCopier.DeepCopy(Object, CopyContext)

Creates a deep copy of the provided untyped input. The type must still match the copier instance!

IFieldCodec.ReadValue<TInput>(Reader<TInput>, Field)

Reads a value and returns it untyped. The type must still match the codec instance!

IFieldCodec.WriteField<TBufferWriter>(Writer<TBufferWriter>, UInt32, Type, Object)

Writes a field using the provided untyped value. The type must still match the codec instance!

IGeneralizedCodec.IsSupportedType(Type)

Determines whether the specified type is supported by this instance.

IGeneralizedCopier.IsSupportedType(Type)

Returns a value indicating whether the provided type is supported by this implementation.

ITypeFilter.IsTypeAllowed(Type)

Determines whether the specified type is allowed to be serialized, deserialized, etcetera.

Applies to