예제 #1
0
 public CASResult recv_cas()
 {
   TMessage msg = iprot_.ReadMessageBegin();
   if (msg.Type == TMessageType.Exception) {
     TApplicationException x = TApplicationException.Read(iprot_);
     iprot_.ReadMessageEnd();
     throw x;
   }
   cas_result result = new cas_result();
   result.Read(iprot_);
   iprot_.ReadMessageEnd();
   if (result.__isset.success) {
     return result.Success;
   }
   if (result.__isset.ire) {
     throw result.Ire;
   }
   if (result.__isset.ue) {
     throw result.Ue;
   }
   if (result.__isset.te) {
     throw result.Te;
   }
   throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "cas failed: unknown result");
 }