Ejemplo n.º 1
0
            public void SendMail_Process(int seqid, TProtocol iprot, TProtocol oprot)
            {
                SendMail_args args = new SendMail_args();

                args.Read(iprot);
                iprot.ReadMessageEnd();
                SendMail_result result = new SendMail_result();

                try {
                    iface_.SendMail(args.Mail);
                } catch (KauwaMailException ex) {
                    result.Ex = ex;
                }
                oprot.WriteMessageBegin(new TMessage("SendMail", TMessageType.Reply, seqid));
                result.Write(oprot);
                oprot.WriteMessageEnd();
                oprot.Transport.Flush();
            }
Ejemplo n.º 2
0
            public void recv_SendMail()
            {
                TMessage msg = iprot_.ReadMessageBegin();

                if (msg.Type == TMessageType.Exception)
                {
                    TApplicationException x = TApplicationException.Read(iprot_);
                    iprot_.ReadMessageEnd();
                    throw x;
                }
                SendMail_result result = new SendMail_result();

                result.Read(iprot_);
                iprot_.ReadMessageEnd();
                if (result.__isset.ex)
                {
                    throw result.Ex;
                }
                return;
            }
Ejemplo n.º 3
0
 public void SendMail_Process(int seqid, TProtocol iprot, TProtocol oprot)
 {
   SendMail_args args = new SendMail_args();
   args.Read(iprot);
   iprot.ReadMessageEnd();
   SendMail_result result = new SendMail_result();
   try {
     iface_.SendMail(args.Mail);
   } catch (KauwaMailException ex) {
     result.Ex = ex;
   }
   oprot.WriteMessageBegin(new TMessage("SendMail", TMessageType.Reply, seqid)); 
   result.Write(oprot);
   oprot.WriteMessageEnd();
   oprot.Transport.Flush();
 }
Ejemplo n.º 4
0
 public void recv_SendMail()
 {
   TMessage msg = iprot_.ReadMessageBegin();
   if (msg.Type == TMessageType.Exception) {
     TApplicationException x = TApplicationException.Read(iprot_);
     iprot_.ReadMessageEnd();
     throw x;
   }
   SendMail_result result = new SendMail_result();
   result.Read(iprot_);
   iprot_.ReadMessageEnd();
   if (result.__isset.ex) {
     throw result.Ex;
   }
   return;
 }