Пример #1
0
 public MethodCallDenied(IEnumerable<ValidationFailure> failures)
 {
     var validationFailures = failures as IList<ValidationFailure> ?? failures.ToList();
     Argument.NotNull(validationFailures, "failures");
     _userMessage =  UserMessage.Format(
         string.Join(Environment.NewLine, validationFailures.Select(x => x.ErrorMessage)),
         "SECURITY_FAULT");
 }
Пример #2
0
 public LoginSuccessModel(UserMessage message, UserIdentityModel user)
     : base(message)
 {
     if (user == null)
     {
         throw new ArgumentNullException("user");
     }
     User = user;
 }
Пример #3
0
 public UserMessageException(UserMessage message)
     : base(message.Message)
 {
     if (message == null)
     {
         throw new ArgumentNullException("message");
     }
     UserMessage = message;
 }
Пример #4
0
 public AccessFailure(AccessFailureReason failure)
 {
     _failure = failure;
     _message = failure.ToUserMessage();
 }
Пример #5
0
 public SecurityException(UserMessage message)
     : base(message)
 {
 }