Ejemplo n.º 1
0
            public void GetBook_Process(int seqid, TProtocol iprot, TProtocol oprot)
            {
                GetBook_args args = new GetBook_args();

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

                result.Success = iface_.GetBook(args.BookId);
                oprot.WriteMessageBegin(new TMessage("GetBook", TMessageType.Reply, seqid));
                result.Write(oprot);
                oprot.WriteMessageEnd();
                oprot.Transport.Flush();
            }
Ejemplo n.º 2
0
            public void send_GetBook(int bookId)
      #endif
            {
                oprot_.WriteMessageBegin(new TMessage("GetBook", TMessageType.Call, seqid_));
                GetBook_args args = new GetBook_args();

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