Redigera

Dela via


MessagePackCodec Class

Definition

A serialization codec which uses MessagePack.MessagePackSerializer.

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

Remarks

MessagePack codec performs slightly worse than default Orleans serializer, if performance is critical for your application, consider using default serialization.

Constructors

MessagePackCodec(IEnumerable<ICodecSelector>, IEnumerable<ICopierSelector>, IOptions<MessagePackCodecOptions>)

Initializes a new instance of the MessagePackCodec 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