Exemple #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="EnableAuthenticatorModel"/> class.
 /// </summary>
 /// <param name="userManager">The user manager.</param>
 /// <param name="logger">The logger.</param>
 /// <param name="urlEncoder">The URL encoder.</param>
 public EnableAuthenticatorModel(
     UserManager <User> userManager,
     ILogger <EnableAuthenticatorModel> logger,
     UrlEncoder urlEncoder)
 {
     _userManager = userManager.ThrowIfArgumentIsNull(nameof(userManager));
     _logger      = logger.ThrowIfArgumentIsNull(nameof(logger));
     _urlEncoder  = urlEncoder.ThrowIfArgumentIsNull(nameof(urlEncoder));
 }