1using System.Threading.Tasks;
2using Microsoft.AspNetCore.Components.Authorization;
20 _currentUserService = currentUserService;
23 var authState = Task.FromResult(
new AuthenticationState(e.NewUser));
24 NotifyAuthenticationStateChanged(authState);
35 return Task.FromResult(
new AuthenticationState(_currentUserService.CurrentUser));
ASP.NET AuthenticationStateProvider that relies on the CslaUserService to manage the current user.
CslaAuthenticationStateProvider(CslaUserService currentUserService)
Creates an instance of the type.
override Task< AuthenticationState > GetAuthenticationStateAsync()
Gets the AuthenticationState from the CslaUserService service.
Expose Csla.ApplicationContext.User for use in Blazor authentication pages.
EventHandler< CurrentUserChangedEventArgs > CurrentUserChanged
Event raised when the current user is changed.