Exemple #1
0
 public AuthenticationService(
     IJSRuntime jsRuntime,
     IAuthenticationStateProvider authenticationStateProvider,
     AuthenticationEventHandler authenticationEventHandler,
     NavigationManager navigationManager,
     ClientOptions clientOptions)
 {
     _jsRuntime = jsRuntime;
     _authenticationStateProvider = authenticationStateProvider;
     _authenticationEventHandler  = authenticationEventHandler;
     _navigationManager           = navigationManager;
     _clientOptions = clientOptions;
 }
 public WeatherForecastService(HttpClient httpClient, IAuthenticationStateProvider stateProvider)
 {
     _httpClient    = httpClient;
     _stateProvider = stateProvider;
 }
 public AuthorizeRegion(IAuthorizationService authorizationService, IAuthenticationStateProvider authenticationState) : base()
 {
     _authorizationService = authorizationService ?? throw new System.ArgumentNullException(nameof(authorizationService));
     _authenticationState  = authenticationState ?? throw new System.ArgumentNullException(nameof(authenticationState));
 }
Exemple #4
0
 public ReloadRegionViewsRegionBehavior(IRegionViewRegistry regionViewRegistry, IAuthenticationStateProvider authenticationStateProvider)
 {
     _regionViewRegistry          = regionViewRegistry;
     _authenticationStateProvider = authenticationStateProvider ?? throw new ArgumentNullException(nameof(authenticationStateProvider));
 }