![]() |
CSLA .NET 10.0.0
A home for your business logic
|
Manages session state. More...
Public Member Functions | |
| Task< Session > | RetrieveSession (TimeSpan timeout) |
| Retrieves the current user's session from the web server to the wasm client. | |
| Task< Session > | RetrieveSession (CancellationToken ct) |
| Retrieves the current user's session from the web server to the wasm client. | |
| Session? | GetCachedSession () |
| 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. | |
Manages session state.
| 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.
| Session Csla.State.ISessionManager.GetSession | ( | ) |
Gets the session data for the current user.
Implemented in Csla.Blazor.State.NoOpSessionManager, and Csla.Blazor.State.SessionManager.
| void Csla.State.ISessionManager.PurgeSessions | ( | TimeSpan | expiration | ) |
Remove all expired session data.
| expiration | Expiration 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.
| 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.
| 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.
| 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.
| 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.
| void Csla.State.ISessionManager.UpdateSession | ( | Session | newSession | ) |
Updates the current user's session data.
| ArgumentNullException | newSession is null. |
Implemented in Csla.Blazor.State.NoOpSessionManager, and Csla.Blazor.State.SessionManager.