コード例 #1
0
 public EmailSender(IOptions <TwoFactorOptions> options, TwoFactorService twoFactorService)
 {
     this._twoFactorOptions = options.Value;
     this._twoFactorService = twoFactorService;
 }
コード例 #2
0
 public TwoFactorService(UrlEncoder urlEncoder, IOptions <TwoFactorOptions> options)
 {
     this._urlEncoder       = urlEncoder;
     this._twoFactorOptions = options.Value;
 }