Compartilhar via


SurrogateCodec<TField,TSurrogate,TConverter> Classe

Definição

Serializador substituto para TField.

public sealed class SurrogateCodec<TField,TSurrogate,TConverter> : Orleans.Serialization.Cloning.IBaseCopier<TField>, Orleans.Serialization.Cloning.IDeepCopier<TField>, Orleans.Serialization.Codecs.IFieldCodec<TField>, Orleans.Serialization.Serializers.IBaseCodec<TField> where TField : class where TSurrogate : struct where TConverter : IConverter<TField,TSurrogate>
type SurrogateCodec<'Field, 'Surrogate, 'Converter (requires 'Field : null and 'Surrogate : struct and 'Converter :> IConverter<'Field, 'Surrogate>)> = class
    interface IFieldCodec<'Field (requires 'Field : null)>
    interface IFieldCodec
    interface IDeepCopier<'Field (requires 'Field : null)>
    interface IDeepCopier
    interface IBaseCodec<'Field (requires 'Field : null)>
    interface IBaseCodec
    interface IBaseCopier<'Field (requires 'Field : null)>
    interface IBaseCopier
Public NotInheritable Class SurrogateCodec(Of TField, TSurrogate, TConverter)
Implements IBaseCodec(Of TField), IBaseCopier(Of TField), IDeepCopier(Of TField), IFieldCodec(Of TField)

Parâmetros de tipo

TField

O tipo ao qual a implementação dessa classe dá suporte.

TSurrogate

O tipo alternativo serializado no lugar de TField.

TConverter

O tipo de conversor que converte entre TField e TSurrogate.

Herança
SurrogateCodec<TField,TSurrogate,TConverter>
Implementações

Construtores

SurrogateCodec<TField,TSurrogate,TConverter>(IValueSerializer<TSurrogate>, IDeepCopier<TSurrogate>, TConverter)

Inicializa uma nova instância da classe SurrogateCodec<TField,TSurrogate,TConverter>.

Métodos

DeepCopy(TField, CopyContext)

Cria uma cópia profunda da entrada fornecida.

DeepCopy(TField, TField, CopyContext)

Clona membros de input e copia-os para output.

Deserialize<TInput>(Reader<TInput>, TField)

Desserializa no valor fornecido.

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

Lê um valor.

Serialize<TBufferWriter>(Writer<TBufferWriter>, TField)

Serializa o valor fornecido.

WriteField<TBufferWriter>(Writer<TBufferWriter>, UInt32, Type, TField)

Grava um campo.

Aplica-se a