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

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

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

                args.Write(oprot_);
                oprot_.WriteMessageEnd();
        #if SILVERLIGHT
                return(oprot_.Transport.BeginFlush(callback, state));
        #else
                oprot_.Transport.Flush();
        #endif
            }
Ejemplo n.º 3
0
            public void Hello_Process(int seqid, TProtocol iprot, TProtocol oprot)
            {
                Hello_args args = new Hello_args();

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

                try {
                    result.Success = iface_.Hello(args.Request);
                } catch (ThriftS.IDL.BadRequestException badRequestException) {
                    result.BadRequestException = badRequestException;
                } catch (ThriftS.IDL.InternalServerException internalServerException) {
                    result.InternalServerException = internalServerException;
                }
                oprot.WriteMessageBegin(new TMessage("Hello", TMessageType.Reply, seqid));
                result.Write(oprot);
                oprot.WriteMessageEnd();
                oprot.Transport.Flush();
            }
Ejemplo n.º 4
0
 public void Hello_Process(int seqid, TProtocol iprot, TProtocol oprot)
 {
   Hello_args args = new Hello_args();
   args.Read(iprot);
   iprot.ReadMessageEnd();
   Hello_result result = new Hello_result();
   result.Success = iface_.Hello();
   oprot.WriteMessageBegin(new TMessage("Hello", TMessageType.Reply, seqid)); 
   result.Write(oprot);
   oprot.WriteMessageEnd();
   oprot.Transport.Flush();
 }
Ejemplo n.º 5
0
 public void send_Hello()
 #endif
 {
   oprot_.WriteMessageBegin(new TMessage("Hello", TMessageType.Call, seqid_));
   Hello_args args = new Hello_args();
   args.Write(oprot_);
   oprot_.WriteMessageEnd();
   #if SILVERLIGHT
   return oprot_.Transport.BeginFlush(callback, state);
   #else
   oprot_.Transport.Flush();
   #endif
 }