public void send_authenticateToSharedNotebook(string shareKey, string authenticationToken) #endif { oprot_.WriteMessageBegin(new TMessage("authenticateToSharedNotebook", TMessageType.Call, seqid_)); authenticateToSharedNotebook_args args = new authenticateToSharedNotebook_args(); args.ShareKey = shareKey; args.AuthenticationToken = authenticationToken; args.Write(oprot_); oprot_.WriteMessageEnd(); #if SILVERLIGHT || NETFX_CORE return oprot_.Transport.BeginFlush(callback, state); #else oprot_.Transport.Flush(); #endif }
public void authenticateToSharedNotebook_Process(int seqid, TProtocol iprot, TProtocol oprot) { authenticateToSharedNotebook_args args = new authenticateToSharedNotebook_args(); args.Read(iprot); iprot.ReadMessageEnd(); authenticateToSharedNotebook_result result = new authenticateToSharedNotebook_result(); try { result.Success = iface_.authenticateToSharedNotebook(args.ShareKey, args.AuthenticationToken); } catch (Evernote.EDAM.Error.EDAMUserException userException) { result.UserException = userException; } catch (Evernote.EDAM.Error.EDAMNotFoundException notFoundException) { result.NotFoundException = notFoundException; } catch (Evernote.EDAM.Error.EDAMSystemException systemException) { result.SystemException = systemException; } oprot.WriteMessageBegin(new TMessage("authenticateToSharedNotebook", TMessageType.Reply, seqid)); result.Write(oprot); oprot.WriteMessageEnd(); oprot.Transport.Flush(); }
public void send_authenticateToSharedNotebook(string shareKey, string authenticationToken) { oprot_.WriteMessageBegin(new TMessage("authenticateToSharedNotebook", TMessageType.Call, seqid_)); authenticateToSharedNotebook_args args = new authenticateToSharedNotebook_args(); args.ShareKey = shareKey; args.AuthenticationToken = authenticationToken; args.Write(oprot_); oprot_.WriteMessageEnd(); oprot_.Transport.Flush(); }