WindowsDefender_WebApp.Match.RemoveUser C# (CSharp) Method

RemoveUser() public method

Remove user from match and re-assign the match host if needed. Uses a monitor lock to ensure multiple users are not writing to the list at the same time.
public RemoveUser ( User user ) : void
user User The user to remove from the match.
return void
        public void RemoveUser(User user)
        {
            lock (_usersLock)
            {
                Users.Remove(user);
            }
        }