Пример #1
0
 public UsersController(IUserRepository userRepository,
                        ILogger <v1.UsersController> logger,
                        IJwtService jwtService,
                        IApplicationUserManager userManager,
                        RoleManager <Role> roleManager,
                        SignInManager <User> signInManager,
                        ISiteStatService siteStatService)
     : base(userRepository, logger, jwtService, userManager, roleManager, signInManager, siteStatService)
 {
 }
 public UsersController(IUserRepository userRepository, ILogger <UsersController> logger, IJwtService jwtService,
                        IApplicationUserManager userManager, RoleManager <Role> roleManager, SignInManager <User> signInManager, ISiteStatService siteStatService)
 {
     _userRepository  = userRepository;
     _logger          = logger;
     _jwtService      = jwtService;
     _userManager     = userManager;
     _roleManager     = roleManager;
     _signInManager   = signInManager;
     _siteStatService = siteStatService;
 }
 public CustomSecurityStampValidator(
     IOptions <SecurityStampValidatorOptions> options,
     IApplicationSignInManager signInManager,
     ISystemClock clock,
     ISiteStatService siteStatService,
     ILoggerFactory logger)
     : base(options, (SignInManager <User>)signInManager, clock, logger)
 {
     _options         = options ?? throw new ArgumentNullException(nameof(_options));
     _signInManager   = signInManager ?? throw new ArgumentNullException(nameof(_signInManager));
     _siteStatService = siteStatService ?? throw new ArgumentNullException(nameof(_siteStatService));
     _clock           = clock;
 }
        public CustomSecurityStampValidator(
            IOptions <IdentityOptions> options,
            IApplicationSignInManager signInManager,
            ISiteStatService siteStatService)
            : base(options, (SignInManager <User>)signInManager)
        {
            _options = options;
            _options.CheckArgumentIsNull(nameof(_options));

            _signInManager = signInManager;
            _signInManager.CheckArgumentIsNull(nameof(_signInManager));

            _siteStatService = siteStatService;
            _siteStatService.CheckArgumentIsNull(nameof(_siteStatService));
        }
Пример #5
0
        public CustomSecurityStampValidator(
            IOptions <SecurityStampValidatorOptions> options,
            IApplicationSignInManager signInManager,
            ISystemClock clock,
            ISiteStatService siteStatService,
            ILoggerFactory loggerFactory)
            : base(options, (SignInManager <User>)signInManager, clock, loggerFactory)
        {
            _options = options;
            _options.CheckArgumentIsNull(nameof(_options));

            _signInManager = signInManager;
            _signInManager.CheckArgumentIsNull(nameof(_signInManager));

            _siteStatService = siteStatService;
            _siteStatService.CheckArgumentIsNull(nameof(_siteStatService));

            _clock = clock;
        }
Пример #6
0
 public OnlineUsersViewComponent(ISiteStatService siteStatService)
 {
     _siteStatService = siteStatService;
 }
Пример #7
0
 public TodayBirthDaysViewComponent(ISiteStatService siteStatService)
 {
     _siteStatService = siteStatService;
 }