/// <summary> /// Attempts to log out the end-user from a remote (browser) session after successful authentication through the <see cref="M:MPinSDK.MPin.AuthenticateAN">AuthenticateAN(user, accessNumber)</see> method. /// <remarks>Before calling this method, make sure that the logout data has been provided by the RPA and that the logout operation is feasible.</remarks> /// </summary> /// <param name="user">The user.</param> /// <returns>True if the log-out request to the RPA has been successful, false - if failed.</returns> public bool Logout(User user) { if (user == null) { return(false); } bool logout; lock (lockObject) { logout = mPtr.Logout(user.Wrapper); } return(logout); }