CSLA .NET 10.0.0
A home for your business logic
Loading...
Searching...
No Matches
Csla.State.ISessionManager Interface Reference

Manages session state. More...

Inheritance diagram for Csla.State.ISessionManager:
Csla.Blazor.State.NoOpSessionManager Csla.Blazor.State.SessionManager Csla.Blazor.WebAssembly.State.SessionManager

Public Member Functions

Task< SessionRetrieveSession (TimeSpan timeout)
 Retrieves the current user's session from the web server to the wasm client.
Task< SessionRetrieveSession (CancellationToken ct)
 Retrieves the current user's session from the web server to the wasm client.
SessionGetCachedSession ()
 Gets the current user's session from the cache.
Task SendSession (TimeSpan timeout)
 Sends the current user's session from the wasm client to the web server.
Task SendSession (CancellationToken ct)
 Sends the current user's session from the wasm client to the web server.
Session GetSession ()
 Gets the session data for the current user.
void UpdateSession (Session newSession)
 Updates the current user's session data.
void PurgeSessions (TimeSpan expiration)
 Remove all expired session data.

Detailed Description

Manages session state.

Member Function Documentation

◆ GetCachedSession()

Session? Csla.State.ISessionManager.GetCachedSession ( )

Gets the current user's session from the cache.

Implemented in Csla.Blazor.State.NoOpSessionManager, and Csla.Blazor.WebAssembly.State.SessionManager.

◆ GetSession()

Session Csla.State.ISessionManager.GetSession ( )

Gets the session data for the current user.

Implemented in Csla.Blazor.State.NoOpSessionManager, and Csla.Blazor.State.SessionManager.

◆ PurgeSessions()

void Csla.State.ISessionManager.PurgeSessions ( TimeSpan expiration)

Remove all expired session data.

Parameters
expirationExpiration duration

Remove all session data that has not been touched in the last "expiration" timeframe.

Implemented in Csla.Blazor.State.NoOpSessionManager, and Csla.Blazor.State.SessionManager.

◆ RetrieveSession() [1/2]

Task< Session > Csla.State.ISessionManager.RetrieveSession ( CancellationToken ct)

Retrieves the current user's session from the web server to the wasm client.

Implemented in Csla.Blazor.State.NoOpSessionManager, and Csla.Blazor.WebAssembly.State.SessionManager.

◆ RetrieveSession() [2/2]

Task< Session > Csla.State.ISessionManager.RetrieveSession ( TimeSpan timeout)

Retrieves the current user's session from the web server to the wasm client.

Implemented in Csla.Blazor.State.NoOpSessionManager, and Csla.Blazor.WebAssembly.State.SessionManager.

◆ SendSession() [1/2]

Task Csla.State.ISessionManager.SendSession ( CancellationToken ct)

Sends the current user's session from the wasm client to the web server.

Implemented in Csla.Blazor.State.NoOpSessionManager, and Csla.Blazor.WebAssembly.State.SessionManager.

◆ SendSession() [2/2]

Task Csla.State.ISessionManager.SendSession ( TimeSpan timeout)

Sends the current user's session from the wasm client to the web server.

Implemented in Csla.Blazor.State.NoOpSessionManager, and Csla.Blazor.WebAssembly.State.SessionManager.

◆ UpdateSession()

void Csla.State.ISessionManager.UpdateSession ( Session newSession)

Updates the current user's session data.

Exceptions
ArgumentNullExceptionnewSession is null.

Implemented in Csla.Blazor.State.NoOpSessionManager, and Csla.Blazor.State.SessionManager.


The documentation for this interface was generated from the following file: