Ejemplo n.º 1
0
 public static void Serializer(global::System.Object untypedInput, global::Orleans.Serialization.BinaryTokenStreamWriter stream, global::System.Type expected)
 {
     global::MWMROrleansGrains.StatefulGrainState input = (global::MWMROrleansGrains.StatefulGrainState)untypedInput;
     global::Orleans.Serialization.SerializationManager.@SerializeInner(input.@Etag, stream, typeof(global::System.String));
     global::Orleans.Serialization.SerializationManager.@SerializeInner(input.@Prefs, stream, typeof(global::System.Collections.Generic.IDictionary <global::System.String, global::System.String>));
     global::Orleans.Serialization.SerializationManager.@SerializeInner(input.@readers, stream, typeof(global::System.Collections.Generic.IDictionary <global::System.String, global::MWMROrleansInterfaces.ConsistencyLevel>));
     global::Orleans.Serialization.SerializationManager.@SerializeInner(input.@writers, stream, typeof(global::System.Collections.Generic.IDictionary <global::System.String, global::MWMROrleansInterfaces.ConsistencyLevel>));
     global::Orleans.Serialization.SerializationManager.@SerializeInner(getField0(input), stream, typeof(global::MWMROrleansInterfaces.Context));
 }
Ejemplo n.º 2
0
 public static global::System.Object Deserializer(global::System.Type expected, global::Orleans.Serialization.BinaryTokenStreamReader stream)
 {
     global::MWMROrleansGrains.StatefulGrainState result = new global::MWMROrleansGrains.StatefulGrainState();
     global::Orleans.@Serialization.@DeserializationContext.@Current.@RecordObject(result);
     result.@Etag    = (global::System.String)global::Orleans.Serialization.SerializationManager.@DeserializeInner(typeof(global::System.String), stream);
     result.@Prefs   = (global::System.Collections.Generic.IDictionary <global::System.String, global::System.String>)global::Orleans.Serialization.SerializationManager.@DeserializeInner(typeof(global::System.Collections.Generic.IDictionary <global::System.String, global::System.String>), stream);
     result.@readers = (global::System.Collections.Generic.IDictionary <global::System.String, global::MWMROrleansInterfaces.ConsistencyLevel>)global::Orleans.Serialization.SerializationManager.@DeserializeInner(typeof(global::System.Collections.Generic.IDictionary <global::System.String, global::MWMROrleansInterfaces.ConsistencyLevel>), stream);
     result.@writers = (global::System.Collections.Generic.IDictionary <global::System.String, global::MWMROrleansInterfaces.ConsistencyLevel>)global::Orleans.Serialization.SerializationManager.@DeserializeInner(typeof(global::System.Collections.Generic.IDictionary <global::System.String, global::MWMROrleansInterfaces.ConsistencyLevel>), stream);
     setField0(result, (global::MWMROrleansInterfaces.Context)global::Orleans.Serialization.SerializationManager.@DeserializeInner(typeof(global::MWMROrleansInterfaces.Context), stream));
     return((global::MWMROrleansGrains.StatefulGrainState)result);
 }
Ejemplo n.º 3
0
 public static global::System.Object DeepCopier(global::System.Object original)
 {
     global::MWMROrleansGrains.StatefulGrainState input  = ((global::MWMROrleansGrains.StatefulGrainState)original);
     global::MWMROrleansGrains.StatefulGrainState result = new global::MWMROrleansGrains.StatefulGrainState();
     result.@Etag    = input.@Etag;
     result.@Prefs   = input.@Prefs;
     result.@readers = input.@readers;
     result.@writers = input.@writers;
     setField0(result, getField0(input));
     global::Orleans.@Serialization.@SerializationContext.@Current.@RecordObject(original, result);
     return(result);
 }