public UserEventArgs(User user, UserChangeType changeType) { User = user; ChangeType = changeType; }
/// <summary> /// Creates new instance. /// </summary> /// <param name="userId">User id.</param> /// <param name="userProfile">User profile.</param> /// <param name="type">Change type.</param> public UserProfileEventArgs(int userId, object userProfile, UserChangeType type) : base(userId, type) { UserProfile = userProfile ?? throw new ArgumentNullException(nameof(userProfile)); }
/// <summary> /// Creates new instance. /// </summary> /// <param name="userId">User id.</param> /// <param name="changeType">Change type.</param> public UserProfileChangeEventArgs(int userId, UserChangeType changeType) : base(userId) { Type = changeType; }