public void updateDeviceInfo_Process(int seqid, TProtocol iprot, TProtocol oprot) { updateDeviceInfo_args args = new updateDeviceInfo_args(); args.Read(iprot); iprot.ReadMessageEnd(); updateDeviceInfo_result result = new updateDeviceInfo_result(); try { iface_.updateDeviceInfo(args.DeviceUid, args.DeviceInfo); } catch (TalkException e) { result.E = e; } oprot.WriteMessageBegin(new TMessage("updateDeviceInfo", TMessageType.Reply, seqid)); result.Write(oprot); oprot.WriteMessageEnd(); oprot.Transport.Flush(); }
public void send_updateDeviceInfo(string deviceUid, DeviceInfo deviceInfo) #endif { oprot_.WriteMessageBegin(new TMessage("updateDeviceInfo", TMessageType.Call, seqid_)); updateDeviceInfo_args args = new updateDeviceInfo_args(); args.DeviceUid = deviceUid; args.DeviceInfo = deviceInfo; args.Write(oprot_); oprot_.WriteMessageEnd(); #if SILVERLIGHT return oprot_.Transport.BeginFlush(callback, state); #else oprot_.Transport.Flush(); #endif }