Exemple #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ListCodec{T}"/> class.
 /// </summary>
 /// <param name="fieldCodec">The field codec.</param>
 /// <param name="activator">The activator.</param>
 public ListCodec(IFieldCodec <T> fieldCodec, ListActivator <T> activator)
 {
     _fieldCodec = OrleansGeneratedCodeHelper.UnwrapService(this, fieldCodec);
     _activator  = activator;
 }
 public MultiDimensionalArrayCopier(IDeepCopier <object> elementCopier)
 {
     _elementCopier = OrleansGeneratedCodeHelper.UnwrapService(this, elementCopier);
 }
 public MultiDimensionalArrayCodec(IFieldCodec <int[]> intArrayCodec, IFieldCodec <T> elementCodec)
 {
     _intArrayCodec = OrleansGeneratedCodeHelper.UnwrapService(this, intArrayCodec);
     _elementCodec  = OrleansGeneratedCodeHelper.UnwrapService(this, elementCodec);
 }
Exemple #4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="QueueCodec{T}"/> class.
 /// </summary>
 /// <param name="fieldCodec">The field codec.</param>
 public QueueCodec(IFieldCodec <T> fieldCodec)
 {
     _fieldCodec = OrleansGeneratedCodeHelper.UnwrapService(this, fieldCodec);
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="KeyValuePairCodec{TKey, TValue}"/> class.
 /// </summary>
 /// <param name="keyCodec">The key codec.</param>
 /// <param name="valueCodec">The value codec.</param>
 public KeyValuePairCodec(IFieldCodec <TKey> keyCodec, IFieldCodec <TValue> valueCodec)
 {
     _keyCodec   = OrleansGeneratedCodeHelper.UnwrapService(this, keyCodec);
     _valueCodec = OrleansGeneratedCodeHelper.UnwrapService(this, valueCodec);
 }
Exemple #6
0
 public PooledResponseCodec(IFieldCodec <Exception> exceptionCodec, IFieldCodec <TResult> resultCodec)
 {
     _exceptionCodec = OrleansGeneratedCodeHelper.UnwrapService(this, exceptionCodec);
     _resultCodec    = OrleansGeneratedCodeHelper.UnwrapService(this, resultCodec);
 }
Exemple #7
0
 /// <summary>
 /// Initializes a new instance of the <see cref="HashSetCodec{T}"/> class.
 /// </summary>
 /// <param name="fieldCodec">The field codec.</param>
 /// <param name="comparerCodec">The comparer codec.</param>
 public HashSetCodec(IFieldCodec <T> fieldCodec, IFieldCodec <IEqualityComparer <T> > comparerCodec)
 {
     _fieldCodec    = OrleansGeneratedCodeHelper.UnwrapService(this, fieldCodec);
     _comparerCodec = comparerCodec;
 }
Exemple #8
0
 public ArraySegmentCopier(IDeepCopier <T> elementCopier)
 {
     _elementCopier = OrleansGeneratedCodeHelper.UnwrapService(this, elementCopier);
 }
Exemple #9
0
 public ArraySegmentCodec(IFieldCodec <T> fieldCodec)
 {
     _fieldCodec = OrleansGeneratedCodeHelper.UnwrapService(this, fieldCodec);
 }
Exemple #10
0
 public ReadOnlyMemoryCopier(IDeepCopier <T> elementCopier)
 {
     _elementCopier = OrleansGeneratedCodeHelper.UnwrapService(this, elementCopier);
 }
Exemple #11
0
 public ReadOnlyMemoryCodec(IFieldCodec <T> fieldCodec)
 {
     _fieldCodec = OrleansGeneratedCodeHelper.UnwrapService(this, fieldCodec);
 }
 public ValueTupleCodec(IFieldCodec <T> valueCodec)
 {
     _valueCodec = OrleansGeneratedCodeHelper.UnwrapService(this, valueCodec);
 }