CSLA.NET 5.4.2
CSLA .NET is a software development framework that helps you build a reusable, maintainable object-oriented business layer for your app.
Csla.Blazor.Client.Authentication.CslaUserService Class Reference

Expose Csla.ApplicationContext.User for use in Blazor authentication pages. More...

Classes

class  CurrentUserChangedEventArgs
 Event args for CurrentUserChanged event. More...
 

Public Member Functions

 CslaUserService ()
 Creates an instance of the type, setting the current user to an unauthenticated ClaimsPrincipal. More...
 

Properties

ClaimsPrincipal? CurrentUser [getset]
 Gets or sets the current user. More...
 

Events

EventHandler< CurrentUserChangedEventArgsCurrentUserChanged
 Event raised when the current user is changed. More...
 

Detailed Description

Expose Csla.ApplicationContext.User for use in Blazor authentication pages.

For use with CslaAuthenticationStateProvider.

Definition at line 11 of file CslaUserService.cs.

Constructor & Destructor Documentation

◆ CslaUserService()

Csla.Blazor.Client.Authentication.CslaUserService.CslaUserService ( )

Creates an instance of the type, setting the current user to an unauthenticated ClaimsPrincipal.

Definition at line 22 of file CslaUserService.cs.

Property Documentation

◆ CurrentUser

ClaimsPrincipal? Csla.Blazor.Client.Authentication.CslaUserService.CurrentUser
getset

Gets or sets the current user.

Definition at line 30 of file CslaUserService.cs.

Event Documentation

◆ CurrentUserChanged

EventHandler<CurrentUserChangedEventArgs> Csla.Blazor.Client.Authentication.CslaUserService.CurrentUserChanged

Event raised when the current user is changed.

Definition at line 16 of file CslaUserService.cs.