예제 #1
0
            public void start_Process(int seqid, TProtocol iprot, TProtocol oprot)
            {
                start_args args = new start_args();

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

                iface_.start(args.Id);
                oprot.WriteMessageBegin(new TMessage("start", TMessageType.Reply, seqid));
                result.Write(oprot);
                oprot.WriteMessageEnd();
                oprot.Transport.Flush();
            }
예제 #2
0
            public void recv_start()
            {
                TMessage msg = iprot_.ReadMessageBegin();

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

                result.Read(iprot_);
                iprot_.ReadMessageEnd();
                return;
            }