public static void UnregisterActiveUser( User u ) { while( activeUsers.Contains( u ) ) { activeUsers.Remove( u ); } }
public static void RegisterActiveUser( User u ) { //note: only call RegisterActiveUser if you wish the user to receive role change notifications. activeUsers.Add( u ); }