public string recv_SetChannelProperty() { TMessage msg = iprot_.ReadMessageBegin(); if (msg.Type == TMessageType.Exception) { TApplicationException x = TApplicationException.Read(iprot_); iprot_.ReadMessageEnd(); throw x; } SetChannelProperty_result result = new SetChannelProperty_result(); result.Read(iprot_); iprot_.ReadMessageEnd(); if (result.__isset.success) { return result.Success; } throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "SetChannelProperty failed: unknown result"); }
public void SetChannelProperty_Process(int seqid, TProtocol iprot, TProtocol oprot) { SetChannelProperty_args args = new SetChannelProperty_args(); args.Read(iprot); iprot.ReadMessageEnd(); SetChannelProperty_result result = new SetChannelProperty_result(); result.Success = iface_.SetChannelProperty(args.ChannelID, args.Key, args.Value); oprot.WriteMessageBegin(new TMessage("SetChannelProperty", TMessageType.Reply, seqid)); result.Write(oprot); oprot.WriteMessageEnd(); oprot.Transport.Flush(); }