HTTP API Toolkit HTTP API Toolkit
HTTP API Toolkit HTTP API Toolkit
DocFX + Singulink = ♥

Search Results for

    Interface ISessionStoreContext<TSessionToken>

    Represents a session data storage context used for managing session records and tokens.

    Inherited Members
    IAsyncDisposable.DisposeAsync()
    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 expectedGeneration. Returns true if the session was updated, or false if the session no longer exists or its generation has changed since it was loaded (i.e. it was refreshed or invalidated concurrently).

    © Singulink. All rights reserved.