コード例 #1
0
ファイル: Nimbus.cs プロジェクト: bcardi/storm-net-adapter
 public byte[] recv_downloadChunk()
 {
   TMessage msg = iprot_.ReadMessageBegin();
   if (msg.Type == TMessageType.Exception) {
     TApplicationException x = TApplicationException.Read(iprot_);
     iprot_.ReadMessageEnd();
     throw x;
   }
   downloadChunk_result result = new downloadChunk_result();
   result.Read(iprot_);
   iprot_.ReadMessageEnd();
   if (result.__isset.success) {
     return result.Success;
   }
   if (result.__isset.aze) {
     throw result.Aze;
   }
   throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "downloadChunk failed: unknown result");
 }