コード例 #1
0
ファイル: orleans.codegen.cs プロジェクト: AntyaDev/Talks
 public static void Serializer(global::System.Object untypedInput, global::Orleans.Serialization.BinaryTokenStreamWriter stream, global::System.Type expected)
 {
     global::IoT.Contracts.RunnerMetrics input = (global::IoT.Contracts.RunnerMetrics)untypedInput;
     global::Orleans.Serialization.SerializationManager.@SerializeInner(input.@Lat, stream, typeof(global::System.Double));
     global::Orleans.Serialization.SerializationManager.@SerializeInner(input.@Long, stream, typeof(global::System.Double));
     global::Orleans.Serialization.SerializationManager.@SerializeInner(input.@RunnerName, stream, typeof(global::System.String));
     global::Orleans.Serialization.SerializationManager.@SerializeInner(input.@RunnerState, stream, typeof(global::IoT.Contracts.RunnerState));
     global::Orleans.Serialization.SerializationManager.@SerializeInner(input.@StepsCount, stream, typeof(global::System.UInt32));
 }
コード例 #2
0
ファイル: orleans.codegen.cs プロジェクト: AntyaDev/Talks
 public static global::System.Object Deserializer(global::System.Type expected, global::Orleans.Serialization.BinaryTokenStreamReader stream)
 {
     global::IoT.Contracts.RunnerMetrics result = new global::IoT.Contracts.RunnerMetrics();
     global::Orleans.@Serialization.@DeserializationContext.@Current.@RecordObject(result);
     result.@Lat         = (global::System.Double)global::Orleans.Serialization.SerializationManager.@DeserializeInner(typeof(global::System.Double), stream);
     result.@Long        = (global::System.Double)global::Orleans.Serialization.SerializationManager.@DeserializeInner(typeof(global::System.Double), stream);
     result.@RunnerName  = (global::System.String)global::Orleans.Serialization.SerializationManager.@DeserializeInner(typeof(global::System.String), stream);
     result.@RunnerState = (global::IoT.Contracts.RunnerState)global::Orleans.Serialization.SerializationManager.@DeserializeInner(typeof(global::IoT.Contracts.RunnerState), stream);
     result.@StepsCount  = (global::System.UInt32)global::Orleans.Serialization.SerializationManager.@DeserializeInner(typeof(global::System.UInt32), stream);
     return((global::IoT.Contracts.RunnerMetrics)result);
 }
コード例 #3
0
ファイル: orleans.codegen.cs プロジェクト: AntyaDev/Talks
 public static global::System.Object DeepCopier(global::System.Object original)
 {
     global::IoT.Contracts.RunnerMetrics input  = ((global::IoT.Contracts.RunnerMetrics)original);
     global::IoT.Contracts.RunnerMetrics result = new global::IoT.Contracts.RunnerMetrics();
     global::Orleans.@Serialization.@SerializationContext.@Current.@RecordObject(original, result);
     result.@Lat         = input.@Lat;
     result.@Long        = input.@Long;
     result.@RunnerName  = input.@RunnerName;
     result.@RunnerState = input.@RunnerState;
     result.@StepsCount  = input.@StepsCount;
     return(result);
 }