コード例 #1
0
 /// <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;
 }
コード例 #2
0
 /// <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;
 }