Beispiel #1
0
            public void send_sendEmail(Email email)
      #endif
            {
                oprot_.WriteMessageBegin(new TMessage("sendEmail", TMessageType.Call, seqid_));
                sendEmail_args args = new sendEmail_args();

                args.Email = email;
                args.Write(oprot_);
                oprot_.WriteMessageEnd();
        #if SILVERLIGHT
                return(oprot_.Transport.BeginFlush(callback, state));
        #else
                oprot_.Transport.Flush();
        #endif
            }
Beispiel #2
0
            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();
            }