Interface ISessionStoreContext<TSessionToken>
Represents a session data storage context used for managing session records and tokens.
Inherited Members
Namespace: Singulink.Net.Http.Api.Service
Assembly: Singulink.Net.Http.Api.Service.dll
Syntax
public interface ISessionStoreContext<TSessionToken> : IAsyncDisposable where TSessionToken : class, ISessionToken
Type Parameters
| Name | Description |
|---|---|
| TSessionToken | The session token type. |
Methods
| Name | Description |
|---|---|
| CreateTokenAsync(TSessionToken, SessionRecord, bool) | Creates a new session token for the session represented by the previous token with the refresh info from the specified session record applied. |
| GetSessionAsync(TSessionToken) | Gets the session record associated with the specified session token together with an indication of whether the token is stale, or null if the session does not exist. |
| InvalidateSessionAsync(TSessionToken) | Signs out of the session associated with the specified session token. |
| TryRefreshSessionAsync(TSessionToken, SessionRecord, int) | Updates the session associated with the specified session token with the provided refreshed values if the stored session generation still matches
|