public UserLoginFailed(Guid operationId, UserIdentityModel user) { Assert.NotNull("user", user); OperationId = operationId; Code = "LOGIN_FAILED"; Description = string.Format("User [{0}] could not to log in.", user.UserName); Data = null; }
public LoginSuccessModel(UserMessage message, UserIdentityModel user) : base(message) { if (user == null) { throw new ArgumentNullException("user"); } User = user; }
public UserLoggedIn(Guid operationId, UserIdentityModel user) { if (user == null) { throw new ArgumentNullException("user"); } OperationId = operationId; Code = "LOGIN"; Description = string.Format("User [{0}] successfully logged in.", user.UserName); Data = null; }