Exemple #1
0
            public ThriftS.IDL.ThriftSResponse recv_Hello()
            {
                TMessage msg = iprot_.ReadMessageBegin();

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

                result.Read(iprot_);
                iprot_.ReadMessageEnd();
                if (result.__isset.success)
                {
                    return(result.Success);
                }
                if (result.__isset.badRequestException)
                {
                    throw result.BadRequestException;
                }
                if (result.__isset.internalServerException)
                {
                    throw result.InternalServerException;
                }
                throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "Hello failed: unknown result");
            }
Exemple #2
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();
            }
Exemple #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();
            }
Exemple #4
0
            public string recv_Hello()
            {
                TMessage msg = iprot_.ReadMessageBegin();

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

                result.Read(iprot_);
                iprot_.ReadMessageEnd();
                if (result.__isset.success)
                {
                    return(result.Success);
                }
                throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "Hello failed: unknown result");
            }
 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();
 }
 public string recv_Hello()
 {
   TMessage msg = iprot_.ReadMessageBegin();
   if (msg.Type == TMessageType.Exception) {
     TApplicationException x = TApplicationException.Read(iprot_);
     iprot_.ReadMessageEnd();
     throw x;
   }
   Hello_result result = new Hello_result();
   result.Read(iprot_);
   iprot_.ReadMessageEnd();
   if (result.__isset.success) {
     return result.Success;
   }
   throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "Hello failed: unknown result");
 }