public void MsgInsert_Process(int seqid, TProtocol iprot, TProtocol oprot) { MsgInsert_args args = new MsgInsert_args(); args.Read(iprot); iprot.ReadMessageEnd(); MsgInsert_result result = new MsgInsert_result(); result.Success = iface_.MsgInsert(args.Message); oprot.WriteMessageBegin(new TMessage("MsgInsert", TMessageType.Reply, seqid)); result.Write(oprot); oprot.WriteMessageEnd(); oprot.Transport.Flush(); }
public void send_MsgInsert(string message) #endif { oprot_.WriteMessageBegin(new TMessage("MsgInsert", TMessageType.Call, seqid_)); MsgInsert_args args = new MsgInsert_args(); args.Message = message; args.Write(oprot_); oprot_.WriteMessageEnd(); #if SILVERLIGHT return(oprot_.Transport.BeginFlush(callback, state)); #else oprot_.Transport.Flush(); #endif }