Exemple #1
0
 public SubTypeSerializer(IPartialSerializer <BaseType> baseTypeSerializer, IFieldCodec <string> stringCodec, IFieldCodec <int> intCodec, IFieldCodec <object> objectCodec)
 {
     _baseTypeSerializer = HagarGeneratedCodeHelper.UnwrapService(this, baseTypeSerializer);
     _stringCodec        = HagarGeneratedCodeHelper.UnwrapService(this, stringCodec);
     _intCodec           = HagarGeneratedCodeHelper.UnwrapService(this, intCodec);
     _objectCodec        = HagarGeneratedCodeHelper.UnwrapService(this, objectCodec);
 }
Exemple #2
0
 public KeyValuePairCodec(IFieldCodec <TKey> keyCodec, IFieldCodec <TValue> valueCodec)
 {
     _keyCodec   = HagarGeneratedCodeHelper.UnwrapService(this, keyCodec);
     _valueCodec = HagarGeneratedCodeHelper.UnwrapService(this, valueCodec);
 }
Exemple #3
0
 public ListCodec(IFieldCodec <T> fieldCodec, ListActivator <T> activator)
 {
     this.fieldCodec = HagarGeneratedCodeHelper.UnwrapService(this, fieldCodec);
     this.activator  = activator;
 }
 public MultiDimensionalArrayCodec(IFieldCodec <int[]> intArrayCodec, IFieldCodec <T> elementCodec)
 {
     this.intArrayCodec = HagarGeneratedCodeHelper.UnwrapService(this, intArrayCodec);
     this.elementCodec  = HagarGeneratedCodeHelper.UnwrapService(this, elementCodec);
 }
Exemple #5
0
 public ArrayCodec(IFieldCodec <T> fieldCodec)
 {
     this.fieldCodec = HagarGeneratedCodeHelper.UnwrapService(this, fieldCodec);
 }
Exemple #6
0
 public Serializer(ITypedCodecProvider codecProvider)
 {
     this.expectedType = typeof(T);
     this.codec        = HagarGeneratedCodeHelper.UnwrapService(null, codecProvider.GetCodec <T>());
 }
Exemple #7
0
 public TupleCodec(IFieldCodec <T> valueCodec)
 {
     _valueCodec = HagarGeneratedCodeHelper.UnwrapService(this, valueCodec);
 }
Exemple #8
0
 public QueueCodec(IFieldCodec <T> fieldCodec)
 {
     _fieldCodec = HagarGeneratedCodeHelper.UnwrapService(this, fieldCodec);
 }
Exemple #9
0
 public ReadOnlyMemoryCodec(IFieldCodec <T> fieldCodec)
 {
     _fieldCodec = HagarGeneratedCodeHelper.UnwrapService(this, fieldCodec);
 }
Exemple #10
0
 public ValueSerializer(IValueSerializerProvider provider)
 {
     this.serializer = HagarGeneratedCodeHelper.UnwrapService(this, provider.GetValueSerializer <TField>());
 }
 public PooledResponseCodec(IFieldCodec <Exception> exceptionCodec, IFieldCodec <TResult> resultCodec)
 {
     _exceptionCodec = HagarGeneratedCodeHelper.UnwrapService(this, exceptionCodec);
     _resultCodec    = HagarGeneratedCodeHelper.UnwrapService(this, resultCodec);
 }