Beispiel #1
0
            public void sendSnapshot_Process(int seqid, TProtocol iprot, TProtocol oprot)
            {
                sendSnapshot_args args = new sendSnapshot_args();

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

                result.Success = iface_.sendSnapshot(args.Req);
                oprot.WriteMessageBegin(new TMessage("sendSnapshot", TMessageType.Reply, seqid));
                result.Write(oprot);
                oprot.WriteMessageEnd();
                oprot.Transport.Flush();
            }
Beispiel #2
0
            public SendSnapshotResponse recv_sendSnapshot()
            {
                TMessage msg = iprot_.ReadMessageBegin();

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

                result.Read(iprot_);
                iprot_.ReadMessageEnd();
                if (result.__isset.success)
                {
                    return(result.Success);
                }
                throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "sendSnapshot failed: unknown result");
            }