示例#1
0
 public AbpComponentsClaimsCache(IClientScopeServiceProviderAccessor clientScopeServiceProviderAccessor)
 {
     _authenticationStateProvider = clientScopeServiceProviderAccessor.ServiceProvider.GetRequiredService<AuthenticationStateProvider>();
     _authenticationStateProvider.AuthenticationStateChanged += async (task) =>
     {
         Principal = (await task).User;
     };
 }
 public AbpBlazorClientHttpMessageHandler(
     IJSRuntime jsRuntime,
     ICookieService cookieService,
     NavigationManager navigationManager,
     IClientScopeServiceProviderAccessor clientScopeServiceProviderAccessor)
 {
     _jsRuntime             = jsRuntime;
     _cookieService         = cookieService;
     _navigationManager     = navigationManager;
     _uiPageProgressService = clientScopeServiceProviderAccessor.ServiceProvider.GetRequiredService <IUiPageProgressService>();
 }
 public WebAssemblyCurrentPrincipalAccessor(
     IClientScopeServiceProviderAccessor clientScopeServiceProviderAccessor)
 {
     ClaimsCache = clientScopeServiceProviderAccessor.ServiceProvider.GetRequiredService <AbpComponentsClaimsCache>();
 }