public static void Serializer(object untypedInput, Orleans.Serialization.BinaryTokenStreamWriter stream, System.Type expected) { IoT.GrainInterfaces.TemperatureReading input = ((IoT.GrainInterfaces.TemperatureReading)(untypedInput)); Orleans.Serialization.SerializationManager.SerializeInner(input.DeviceId, stream, typeof(Int64)); Orleans.Serialization.SerializationManager.SerializeInner(input.Time, stream, typeof(DateTime)); Orleans.Serialization.SerializationManager.SerializeInner(input.Value, stream, typeof(Double)); }
public static object Deserializer(System.Type expected, global::Orleans.Serialization.BinaryTokenStreamReader stream) { IoT.GrainInterfaces.TemperatureReading result = new IoT.GrainInterfaces.TemperatureReading(); result.DeviceId = ((Int64)(Orleans.Serialization.SerializationManager.DeserializeInner(typeof(Int64), stream))); result.Time = ((DateTime)(Orleans.Serialization.SerializationManager.DeserializeInner(typeof(DateTime), stream))); result.Value = ((Double)(Orleans.Serialization.SerializationManager.DeserializeInner(typeof(Double), stream))); return(result); }
System.Threading.Tasks.Task IoT.GrainInterfaces.ISystemGrain.SetTemperature(IoT.GrainInterfaces.TemperatureReading reading) { return(base.InvokeMethodAsync <object>(997261292, new object[] { reading })); }