Пример #1
0
 public static void Serializer(object untypedInput, Orleans.Serialization.BinaryTokenStreamWriter stream, System.Type expected)
 {
     FDD.OrleansGPSTracker.GrainInterfaces.DeviceInfo input = ((FDD.OrleansGPSTracker.GrainInterfaces.DeviceInfo)(untypedInput));
     Orleans.Serialization.SerializationManager.SerializeInner(input.Id, stream, typeof(System.Guid));
     Orleans.Serialization.SerializationManager.SerializeInner(input.Latitude, stream, typeof(double));
     Orleans.Serialization.SerializationManager.SerializeInner(input.Longitude, stream, typeof(double));
 }
Пример #2
0
 public static object Deserializer(System.Type expected, global::Orleans.Serialization.BinaryTokenStreamReader stream)
 {
     FDD.OrleansGPSTracker.GrainInterfaces.DeviceInfo result = default(FDD.OrleansGPSTracker.GrainInterfaces.DeviceInfo);
     result.Id        = ((System.Guid)(Orleans.Serialization.SerializationManager.DeserializeInner(typeof(System.Guid), stream)));
     result.Latitude  = ((double)(Orleans.Serialization.SerializationManager.DeserializeInner(typeof(double), stream)));
     result.Longitude = ((double)(Orleans.Serialization.SerializationManager.DeserializeInner(typeof(double), stream)));
     return(result);
 }