Exemplo n.º 1
0
 public static void Serializer(object untypedInput, Orleans.Serialization.BinaryTokenStreamWriter stream, System.Type expected)
 {
     OrleansInterfaces.GrainInformation input = ((OrleansInterfaces.GrainInformation)(untypedInput));
     Orleans.Serialization.SerializationManager.SerializeInner(input.DeviceId, stream, typeof(string));
     Orleans.Serialization.SerializationManager.SerializeInner(input.Time, stream, typeof(System.DateTime));
     Orleans.Serialization.SerializationManager.SerializeInner(input.Value, stream, typeof(string));
 }
Exemplo n.º 2
0
 public static object Deserializer(System.Type expected, global::Orleans.Serialization.BinaryTokenStreamReader stream)
 {
     OrleansInterfaces.GrainInformation result = new OrleansInterfaces.GrainInformation();
     result.DeviceId = ((string)(Orleans.Serialization.SerializationManager.DeserializeInner(typeof(string), stream)));
     result.Time     = ((System.DateTime)(Orleans.Serialization.SerializationManager.DeserializeInner(typeof(System.DateTime), stream)));
     result.Value    = ((string)(Orleans.Serialization.SerializationManager.DeserializeInner(typeof(string), stream)));
     return(result);
 }
Exemplo n.º 3
0
 public static object Deserializer(System.Type expected, global::Orleans.Serialization.BinaryTokenStreamReader stream)
 {
     OrleansInterfaces.GrainInformation result = new OrleansInterfaces.GrainInformation();
     result.DeviceId = ((string)(Orleans.Serialization.SerializationManager.DeserializeInner(typeof(string), stream)));
     result.Time = ((System.DateTime)(Orleans.Serialization.SerializationManager.DeserializeInner(typeof(System.DateTime), stream)));
     result.Value = ((string)(Orleans.Serialization.SerializationManager.DeserializeInner(typeof(string), stream)));
     return result;
 }
Exemplo n.º 4
0
 System.Threading.Tasks.Task OrleansInterfaces.IAggregatorGrain.SetColor(OrleansInterfaces.GrainInformation @grainInformation)
 {
     return(base.InvokeMethodAsync <object>(937813785, new object[] { @grainInformation }));
 }