예제 #1
0
 public SecurityService(NavigationManager navigationManager,
                        AuthenticationStateProvider authenticationStateProvider,
                        HttpClient httpClient, GlobalsService globals,
                        IWebAssemblyHostEnvironment env)
 {
     this.httpClient                  = httpClient;
     this.baseUri                     = new Uri($"{navigationManager.BaseUri}auth/");
     this.navigationManager           = navigationManager;
     this.authenticationStateProvider = authenticationStateProvider;
     this.globals                     = globals;
     this.env = env;
 }
예제 #2
0
 public SecurityService(ApplicationIdentityDbContext context,
                        IWebHostEnvironment env,
                        UserManager <ApplicationUser> userManager,
                        RoleManager <IdentityRole> roleManager,
                        SignInManager <ApplicationUser> signInManager,
                        NavigationManager uriHelper,
                        GlobalsService globals)
 {
     this.context       = context;
     this.userManager   = userManager;
     this.roleManager   = roleManager;
     this.signInManager = signInManager;
     this.env           = env;
     this.uriHelper     = uriHelper;
     this.globals       = globals;
 }