public ApplicationSignInManager(
            IApplicationUserManager userManager,
            IHttpContextAccessor contextAccessor,
            IUserClaimsPrincipalFactory <User> claimsFactory,
            IOptions <IdentityOptions> optionsAccessor,
            ILogger <ApplicationSignInManager> logger,
            IAuthenticationSchemeProvider schemes)
            : base((UserManager <User>)userManager, contextAccessor, claimsFactory, optionsAccessor, logger, schemes)
        {
            _userManager = userManager;
            _userManager.CheckArgumentIsNull(nameof(_userManager));

            _contextAccessor = contextAccessor;
            _contextAccessor.CheckArgumentIsNull(nameof(_contextAccessor));

            _claimsFactory = claimsFactory;
            _claimsFactory.CheckArgumentIsNull(nameof(_claimsFactory));

            _optionsAccessor = optionsAccessor;
            _optionsAccessor.CheckArgumentIsNull(nameof(_optionsAccessor));

            _logger = logger;
            _logger.CheckArgumentIsNull(nameof(_logger));

            _schemes = schemes;
            _schemes.CheckArgumentIsNull(nameof(_schemes));
        }
Esempio n. 2
0
        public SignInService(
            IUserService userService,
            IHttpContextAccessor httpContextAccessor,
            IUserClaimsPrincipalFactory <User> userClaimsPrincipalFactory,
            IOptions <IdentityOptions> optionsAccessor,
            ILogger <SignInService> logger,
            IAuthenticationSchemeProvider authenticationSchemeProvider)
            : base((UserManager <User>)userService, httpContextAccessor, userClaimsPrincipalFactory, optionsAccessor, logger, authenticationSchemeProvider)
        {
            _userService = userService;
            _userService.CheckArgumentIsNull(nameof(_userService));

            _httpContextAccessor = httpContextAccessor;
            _httpContextAccessor.CheckArgumentIsNull(nameof(_httpContextAccessor));

            _userClaimsPrincipalFactory = userClaimsPrincipalFactory;
            _userClaimsPrincipalFactory.CheckArgumentIsNull(nameof(_userClaimsPrincipalFactory));

            _optionsAccessor = optionsAccessor;
            _optionsAccessor.CheckArgumentIsNull(nameof(_optionsAccessor));

            _logger = logger;
            _logger.CheckArgumentIsNull(nameof(_logger));

            _authenticationSchemeProvider = authenticationSchemeProvider;
            _authenticationSchemeProvider.CheckArgumentIsNull(nameof(_authenticationSchemeProvider));
        }