/// <summary> /// Register a user. /// </summary> /// <param name="user">User to register.</param> public override void RegisterUser(User user) { // send up to base class base.RegisterUser(user); // raise the user joined event OnUserJoin(new UserActionEventArgs(user)); }
public UserActionEventArgs(User u) { User = u; }
/// <summary> /// Adds user to current chat. /// </summary> /// <param name="user">User to register.</param> public virtual void RegisterUser(User user) { Members.Add(user.Username, user); }