Пример #1
0
 public void authenticateToBusiness_Process(int seqid, TProtocol iprot, TProtocol oprot)
 {
   authenticateToBusiness_args args = new authenticateToBusiness_args();
   args.Read(iprot);
   iprot.ReadMessageEnd();
   authenticateToBusiness_result result = new authenticateToBusiness_result();
   try {
     result.Success = iface_.authenticateToBusiness(args.AuthenticationToken);
   } catch (Evernote.EDAM.Error.EDAMUserException userException) {
     result.UserException = userException;
   } catch (Evernote.EDAM.Error.EDAMSystemException systemException) {
     result.SystemException = systemException;
   }
   oprot.WriteMessageBegin(new TMessage("authenticateToBusiness", TMessageType.Reply, seqid)); 
   result.Write(oprot);
   oprot.WriteMessageEnd();
   oprot.Transport.Flush();
 }
Пример #2
0
 public void send_authenticateToBusiness(string authenticationToken)
 #endif
 {
   oprot_.WriteMessageBegin(new TMessage("authenticateToBusiness", TMessageType.Call, seqid_));
   authenticateToBusiness_args args = new authenticateToBusiness_args();
   args.AuthenticationToken = authenticationToken;
   args.Write(oprot_);
   oprot_.WriteMessageEnd();
   #if SILVERLIGHT || NETFX_CORE
   return oprot_.Transport.BeginFlush(callback, state);
   #else
   oprot_.Transport.Flush();
   #endif
 }