public void trySendMessage_Process(int seqid, TProtocol iprot, TProtocol oprot) { trySendMessage_args args = new trySendMessage_args(); args.Read(iprot); iprot.ReadMessageEnd(); trySendMessage_result result = new trySendMessage_result(); try { result.Success = iface_.trySendMessage(args.Seq, args.Message); } catch (TalkException e) { result.E = e; } oprot.WriteMessageBegin(new TMessage("trySendMessage", TMessageType.Reply, seqid)); result.Write(oprot); oprot.WriteMessageEnd(); oprot.Transport.Flush(); }
public void send_trySendMessage(int seq, Message message) #endif { oprot_.WriteMessageBegin(new TMessage("trySendMessage", TMessageType.Call, seqid_)); trySendMessage_args args = new trySendMessage_args(); args.Seq = seq; args.Message = message; args.Write(oprot_); oprot_.WriteMessageEnd(); #if SILVERLIGHT return oprot_.Transport.BeginFlush(callback, state); #else oprot_.Transport.Flush(); #endif }