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