public void sendEmail_Process(int seqid, TProtocol iprot, TProtocol oprot) { sendEmail_args args = new sendEmail_args(); args.Read(iprot); iprot.ReadMessageEnd(); sendEmail_result result = new sendEmail_result(); try { iface_.sendEmail(args.Email); } catch (com.imd.common.thrift.ThriftException e) { result.E = e; } oprot.WriteMessageBegin(new TMessage("sendEmail", TMessageType.Reply, seqid)); result.Write(oprot); oprot.WriteMessageEnd(); oprot.Transport.Flush(); }
public void recv_sendEmail() { TMessage msg = iprot_.ReadMessageBegin(); if (msg.Type == TMessageType.Exception) { TApplicationException x = TApplicationException.Read(iprot_); iprot_.ReadMessageEnd(); throw x; } sendEmail_result result = new sendEmail_result(); result.Read(iprot_); iprot_.ReadMessageEnd(); if (result.__isset.e) { throw result.E; } return; }