Beispiel #1
0
        public LogOutReply Logout(LogOutRequest request)
        {
            bool loggedOut = false;

            lock (this)
            {
                loggedOut = serverManagement.Logout(request.User, request.Url);
            }
            if (loggedOut)
            {
                Console.WriteLine($"Client {request.User.Name} with Id {request.User.Id} logged out at {request.Url}");
            }
            else
            {
                Console.WriteLine($"Client {request.User.Name} with Id {request.User.Id} FAILED to log out at {request.Url}");
            }
            return(new LogOutReply
            {
                Ok = loggedOut
            });
        }