コード例 #1
0
 public JweBlackListService(
     IDataBaseFactory dataBaseFactory,
     IOptions <JweOptions> jweOptions)
 {
     this.dataBaseFactory = dataBaseFactory;
     this.jweOptions      = jweOptions.Value;
 }
コード例 #2
0
ファイル: JweService.cs プロジェクト: vinidiktov/SunEngine
 public JweService(
     DataBaseConnection db,
     SunUserManager userManager,
     IRolesCache rolesCache,
     ICryptService cryptService,
     IOptions <JweOptions> jwtOptions,
     ILoggerFactory loggerFactory) : base(db)
 {
     this.userManager  = userManager;
     this.cryptService = cryptService;
     this.jweOptions   = jwtOptions.Value;
     logger            = loggerFactory.CreateLogger <AccountController>();
     this.rolesCache   = rolesCache;
 }
コード例 #3
0
 public AccountManager(
     SunUserManager userManager,
     IEmailSenderService emailSenderService,
     DataBaseConnection db,
     ICryptService cryptService,
     IOptions <GlobalOptions> globalOptions,
     IOptions <JweOptions> jwtOptions) : base(db)
 {
     this.jweOptions         = jwtOptions.Value;
     this.userManager        = userManager;
     this.globalOptions      = globalOptions.Value;
     this.emailSenderService = emailSenderService;
     this.cryptService       = cryptService;
 }
コード例 #4
0
ファイル: SunJweHandler.cs プロジェクト: crazyants/SunEngine
 public SunJweHandler(
     IOptionsMonitor <SunJwtOptions> options,
     ILoggerFactory logger,
     UrlEncoder encoder,
     ISystemClock clock,
     IRolesCache rolesCache,
     IOptions <JweOptions> jweOptions,
     JweService jweService,
     JweBlackListService jweBlackListService,
     SunUserManager userManager) : base(options, logger, encoder, clock)
 {
     this.rolesCache          = rolesCache;
     this.jweOptions          = jweOptions.Value;
     this.jweService          = jweService;
     this.userManager         = userManager;
     this.jweBlackListService = jweBlackListService;
 }