Class SessionLookupResult<TSessionToken>
Represents a session found in the session store: its record, and optionally a token that replaces the one it was found with.
Namespace: Singulink.Net.Http.Api.Service
Assembly: Singulink.Net.Http.Api.Service.dll
Syntax
public sealed class SessionLookupResult<TSessionToken> where TSessionToken : class, ISessionToken
Type Parameters
| Name | Description |
|---|---|
| TSessionToken | The session token type. |
Constructors
| Name | Description |
|---|---|
| SessionLookupResult(SessionRecord, TSessionToken?) | Initializes a new instance of the SessionLookupResult<TSessionToken> class. |
Properties
| Name | Description |
|---|---|
| ReplacementToken | Gets the token that the session continues with instead of the one it was found with, or null to keep that token. The request that found the session gets the replacement token, and the session cookie is reissued with it. |
| Session | Gets the session record that was found. |