SurrogateCodec<TField,TSurrogate,TConverter> 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
初始化 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
代理项转换器。