Example #1
0
            public void send_sendShortMessage(ShortMessage sm)
      #endif
            {
                oprot_.WriteMessageBegin(new TMessage("sendShortMessage", TMessageType.Call, seqid_));
                sendShortMessage_args args = new sendShortMessage_args();

                args.Sm = sm;
                args.Write(oprot_);
                oprot_.WriteMessageEnd();
        #if SILVERLIGHT
                return(oprot_.Transport.BeginFlush(callback, state));
        #else
                oprot_.Transport.Flush();
        #endif
            }
Example #2
0
            public void sendShortMessage_Process(int seqid, TProtocol iprot, TProtocol oprot)
            {
                sendShortMessage_args args = new sendShortMessage_args();

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

                try {
                    iface_.sendShortMessage(args.Sm);
                } catch (com.imd.common.thrift.ThriftException e) {
                    result.E = e;
                }
                oprot.WriteMessageBegin(new TMessage("sendShortMessage", TMessageType.Reply, seqid));
                result.Write(oprot);
                oprot.WriteMessageEnd();
                oprot.Transport.Flush();
            }