Exemplo n.º 1
0
 public static void Serializer(object untypedInput, Orleans.Serialization.BinaryTokenStreamWriter stream, System.Type expected)
 {
     HrGrainInterfaces.GreetingData input = ((HrGrainInterfaces.GreetingData)(untypedInput));
     Orleans.Serialization.SerializationManager.SerializeInner(input.Count, stream, typeof(int));
     Orleans.Serialization.SerializationManager.SerializeInner(input.From, stream, typeof(long));
     Orleans.Serialization.SerializationManager.SerializeInner(input.Message, stream, typeof(string));
 }
Exemplo n.º 2
0
 public static object Deserializer(System.Type expected, global::Orleans.Serialization.BinaryTokenStreamReader stream)
 {
     HrGrainInterfaces.GreetingData result = new HrGrainInterfaces.GreetingData();
     result.Count   = ((int)(Orleans.Serialization.SerializationManager.DeserializeInner(typeof(int), stream)));
     result.From    = ((long)(Orleans.Serialization.SerializationManager.DeserializeInner(typeof(long), stream)));
     result.Message = ((string)(Orleans.Serialization.SerializationManager.DeserializeInner(typeof(string), stream)));
     return(result);
 }
Exemplo n.º 3
0
 System.Threading.Tasks.Task HrGrainInterfaces.IEmployee.Greeting(HrGrainInterfaces.GreetingData @greetingData)
 {
     return(base.InvokeMethodAsync <object>(502068619, new object[] { @greetingData }));
 }