예제 #1
0
 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;
 }
예제 #2
0
 public LoginSuccessModel(UserMessage message, UserIdentityModel user) : base(message)
 {
     if (user == null)
     {
         throw new ArgumentNullException("user");
     }
     User = user;
 }
예제 #3
0
 public LoginSuccessModel(UserMessage message, UserIdentityModel user)
     : base(message)
 {
     if (user == null)
     {
         throw new ArgumentNullException("user");
     }
     User = user;
 }
예제 #4
0
 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;
 }