/// <summary> /// Initializes a new instance of the <see cref="PwnedPasswordErrorDescriber"/> class. /// </summary> /// <param name="options">The validator options.</param> public PwnedPasswordErrorDescriber(IOptions <PwnedPasswordValidatorOptions> options = null) { _options = options?.Value; }
/// <summary> /// Create a new instance of the <see cref="PwnedPasswordValidator{TUser}"/> /// </summary> public PwnedPasswordValidator(IPwnedPasswordsClient client, IOptions <PwnedPasswordValidatorOptions> options) { _client = client ?? throw new ArgumentNullException(nameof(client)); _options = options.Value; }