public SecurityService(AuthDbContext context,
                        //IWebHostEnvironment env,
                        UserManager <AppUser> userManager,
                        RoleManager <AppRole> roleManager,
                        SignInManager <AppUser> signInManager,
                        IHttpContextAccessor httpContextAccessor,
                        NavigationManager uriHelper,
                        AuthenticationStateProvider authenticationStateProvider)
 {
     this.context       = context;
     this.userManager   = userManager;
     this.roleManager   = roleManager;
     this.signInManager = signInManager;
     //this.env = env;
     this.httpContextAccessor         = httpContextAccessor;
     this.uriHelper                   = uriHelper;
     this.authenticationStateProvider = authenticationStateProvider;
 }
Ejemplo n.º 2
0
 public UserService(AuthDbContext context)
 {
     _context = context;
     ;
 }