SurrogateCodec<TField,TSurrogate,TConverter> Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of the SurrogateCodec<TField,TSurrogate,TConverter> class.
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)
Parameters
- surrogateSerializer
- IValueSerializer<TSurrogate>
The surrogate serializer.
- surrogateCopier
- IDeepCopier<TSurrogate>
The surrogate copier.
- converter
- TConverter
The surrogate converter.