SurrogateCodec<TField,TSurrogate,TConverter> 构造函数

定义

初始化 SurrogateCodec<TField,TSurrogate,TConverter> 类的新实例。

public SurrogateCodec (Orleans.Serialization.Serializers.IValueSerializer<TSurrogate> surrogateSerializer, Orleans.Serialization.Cloning.IDeepCopier<TSurrogate> surrogateCopier, TConverter converter);
new Orleans.Serialization.Serializers.SurrogateCodec<'Field, 'Surrogate, 'Converter (requires 'Field : null and 'Surrogate : struct and 'Converter :> Orleans.IConverter<'Field, 'Surrogate>)> : Orleans.Serialization.Serializers.IValueSerializer<'Surrogate (requires 'Surrogate : struct)> * Orleans.Serialization.Cloning.IDeepCopier<'Surrogate (requires 'Surrogate : struct)> * 'Converter -> Orleans.Serialization.Serializers.SurrogateCodec<'Field, 'Surrogate, 'Converter (requires 'Field : null and 'Surrogate : struct and 'Converter :> Orleans.IConverter<'Field, 'Surrogate>)>
Public Sub New (surrogateSerializer As IValueSerializer(Of TSurrogate), surrogateCopier As IDeepCopier(Of TSurrogate), converter As TConverter)

参数

surrogateSerializer
IValueSerializer<TSurrogate>

代理项序列化程序。

surrogateCopier
IDeepCopier<TSurrogate>

代理复制器。

converter
TConverter

代理项转换器。

适用于