예제 #1
0
 public static void Serializer(object untypedInput, Orleans.Serialization.BinaryTokenStreamWriter stream, System.Type expected)
 {
     Orleans.Runtime.TickStatus input = ((Orleans.Runtime.TickStatus)(untypedInput));
     Orleans.Serialization.SerializationManager.SerializeInner(input.CurrentTickTime, stream, typeof(System.DateTime));
     Orleans.Serialization.SerializationManager.SerializeInner(input.FirstTickTime, stream, typeof(System.DateTime));
     Orleans.Serialization.SerializationManager.SerializeInner(input.Period, stream, typeof(System.TimeSpan));
 }
예제 #2
0
        public static object Deserializer(System.Type expected, global::Orleans.Serialization.BinaryTokenStreamReader stream)
        {
            Orleans.Runtime.TickStatus result = default(Orleans.Runtime.TickStatus);
            object objResult = ((object)(result));
            object temp1     = ((System.DateTime)(Orleans.Serialization.SerializationManager.DeserializeInner(typeof(System.DateTime), stream)));

            fieldInfo1.SetValue(objResult, temp1);
            object temp2 = ((System.DateTime)(Orleans.Serialization.SerializationManager.DeserializeInner(typeof(System.DateTime), stream)));

            fieldInfo2.SetValue(objResult, temp2);
            object temp3 = ((System.TimeSpan)(Orleans.Serialization.SerializationManager.DeserializeInner(typeof(System.TimeSpan), stream)));

            fieldInfo3.SetValue(objResult, temp3);
            return(objResult);
        }
예제 #3
0
 System.Threading.Tasks.Task Orleans.IRemindable.ReceiveReminder(string @reminderName, Orleans.Runtime.TickStatus @status)
 {
     return(base.InvokeMethodAsync <object>(-1573596583, new object[] { @reminderName, @status }));
 }