コード例 #1
0
            public void recv_Log()
            {
                TMessage msg = iprot_.ReadMessageBegin();

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

                result.Read(iprot_);
                iprot_.ReadMessageEnd();
                return;
            }
コード例 #2
0
ファイル: scribe.cs プロジェクト: kobolabs/CSharpScribe
 public ResultCode recv_Log()
 {
     TMessage msg = iprot_.ReadMessageBegin();
     if (msg.Type == TMessageType.Exception) {
       TApplicationException x = TApplicationException.Read(iprot_);
       iprot_.ReadMessageEnd();
       throw x;
     }
     Log_result result = new Log_result();
     result.Read(iprot_);
     iprot_.ReadMessageEnd();
     if (result.__isset.success) {
       return result.Success;
     }
     throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "Log failed: unknown result");
 }
コード例 #3
0
        public ResultCode recv_Log()
        {
            TMessage msg = iprot_.ReadMessageBegin();

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

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