Ejemplo n.º 1
0
 public void refreshAuthentication_Process(int seqid, TProtocol iprot, TProtocol oprot)
 {
   refreshAuthentication_args args = new refreshAuthentication_args();
   args.Read(iprot);
   iprot.ReadMessageEnd();
   refreshAuthentication_result result = new refreshAuthentication_result();
   try {
     result.Success = iface_.refreshAuthentication(args.AuthenticationToken);
   } catch (Evernote.EDAM.Error.EDAMUserException userException) {
     result.UserException = userException;
   } catch (Evernote.EDAM.Error.EDAMSystemException systemException) {
     result.SystemException = systemException;
   }
   oprot.WriteMessageBegin(new TMessage("refreshAuthentication", TMessageType.Reply, seqid)); 
   result.Write(oprot);
   oprot.WriteMessageEnd();
   oprot.Transport.Flush();
 }
Ejemplo n.º 2
0
 public AuthenticationResult recv_refreshAuthentication()
 {
   TMessage msg = iprot_.ReadMessageBegin();
   if (msg.Type == TMessageType.Exception) {
     TApplicationException x = TApplicationException.Read(iprot_);
     iprot_.ReadMessageEnd();
     throw x;
   }
   refreshAuthentication_result result = new refreshAuthentication_result();
   result.Read(iprot_);
   iprot_.ReadMessageEnd();
   if (result.__isset.success) {
     return result.Success;
   }
   if (result.__isset.userException) {
     throw result.UserException;
   }
   if (result.__isset.systemException) {
     throw result.SystemException;
   }
   throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "refreshAuthentication failed: unknown result");
 }