/// <inheritdoc /> public AuthProofRequestHandler([NotNull] ILog logger, [NotNull] IAuthenticationAuthChallengeRepository challengeRepository, [NotNull] IAuthenticationUserAccountRepository accountRepository) { if (logger == null) { throw new ArgumentNullException(nameof(logger)); } if (challengeRepository == null) { throw new ArgumentNullException(nameof(challengeRepository)); } Logger = logger; ChallengeRepository = challengeRepository; AccountRepository = accountRepository ?? throw new ArgumentNullException(nameof(accountRepository)); }
/// <inheritdoc /> public AuthLogonChallengeRequestHandler([NotNull] ILog logger, [NotNull] IRepositoryServiceFactory <IAuthenticationUserAccountRepository> accountRepository, [NotNull] IAuthenticationAuthChallengeRepository challengeRepository) { if (logger == null) { throw new ArgumentNullException(nameof(logger)); } if (accountRepository == null) { throw new ArgumentNullException(nameof(accountRepository)); } if (challengeRepository == null) { throw new ArgumentNullException(nameof(challengeRepository)); } Logger = logger; AccountRepository = accountRepository; ChallengeRepository = challengeRepository; }