Ejemplo n.º 1
0
 public LoginManagerService(
     UserManager <PersonModel> userManager,
     IHttpContextAccessor contextAccessor,
     IUserClaimsPrincipalFactory <PersonModel> claimsFactory,
     IOptions <IdentityOptions> optionsAccessor,
     ILogger <SignInManager <PersonModel> > logger,
     IAuthenticationSchemeProvider schemeProvider,
     IUserConfirmation <PersonModel> confirmation,
     IAccessManagerService accessManagerService
     )
     : base(userManager, contextAccessor, claimsFactory, optionsAccessor, logger, schemeProvider, confirmation)
 {
     _accessManagerService = accessManagerService ?? throw new ArgumentNullException(nameof(accessManagerService));
 }
Ejemplo n.º 2
0
 public AuthorizationController(IAccessManagerService accessManager, ILoginManagerService loginManagerService)
 {
     _accessManager       = accessManager ?? throw new ArgumentNullException(nameof(accessManager));
     _loginManagerService = loginManagerService ?? throw new ArgumentNullException(nameof(loginManagerService));
 }