Example #1
0
            public void sendEmailMessage_Process(int seqid, TProtocol iprot, TProtocol oprot)
            {
                sendEmailMessage_args args = new sendEmailMessage_args();

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

                try
                {
                    result.Success = iface_.sendEmailMessage();
                    oprot.WriteMessageBegin(new TMessage("sendEmailMessage", TMessageType.Reply, seqid));
                    result.Write(oprot);
                }
                catch (TTransportException)
                {
                    throw;
                }
                catch (Exception ex)
                {
                    Console.Error.WriteLine("Error occurred in processor:");
                    Console.Error.WriteLine(ex.ToString());
                    TApplicationException x = new TApplicationException(TApplicationException.ExceptionType.InternalError, " Internal error.");
                    oprot.WriteMessageBegin(new TMessage("sendEmailMessage", TMessageType.Exception, seqid));
                    x.Write(oprot);
                }
                oprot.WriteMessageEnd();
                oprot.Transport.Flush();
            }
Example #2
0
            public void send_sendEmailMessage()
      #endif
            {
                oprot_.WriteMessageBegin(new TMessage("sendEmailMessage", TMessageType.Call, seqid_));
                sendEmailMessage_args args = new sendEmailMessage_args();

                args.Write(oprot_);
                oprot_.WriteMessageEnd();
        #if SILVERLIGHT
                return(oprot_.Transport.BeginFlush(callback, state));
        #else
                oprot_.Transport.Flush();
        #endif
            }