Class HttpSessionContextFactory<TSessionToken, TSessionData>
Factory for creating HttpSessionContext<TSessionToken> instances.
Implements
IHttpSessionContextFactory<TSessionToken>
Namespace: Singulink.Net.Http.Api.Service
Assembly: Singulink.Net.Http.Api.Service.dll
Syntax
public class HttpSessionContextFactory<TSessionToken, TSessionData> : IHttpSessionContextFactory<TSessionToken> where TSessionToken : class, ISessionToken where TSessionData : class, ISessionData
Type Parameters
| Name | Description |
|---|---|
| TSessionToken | The session token type. |
| TSessionData | The session storage entry type. |
Constructors
| Name | Description |
|---|---|
| HttpSessionContextFactory(IDataProtectionProvider, IOriginValidator, ISessionStoreContextFactory<TSessionToken, TSessionData>, IOptions<SessionHandlingOptions>) | Initializes a new instance of the HttpSessionContextFactory<TSessionToken, TSessionData> class. |
Methods
| Name | Description |
|---|---|
| Create(HttpContext) | Creates an HttpSessionContext<TSessionToken> for the specified HttpContext. |