Interface ISessionToken<TSelf>
Represents an application's session token that endpoints take as a parameter. Minimal API endpoints bind a parameter of the token type with BindSessionTokenAsync<TSessionToken>(HttpContext, ParameterInfo), which reads the parameter's nullability and its SessionAccessAttribute.
Inherited Members
Namespace: Singulink.Net.Http.Api.Service
Assembly: Singulink.Net.Http.Api.Service.dll
Syntax
public interface ISessionToken<TSelf> : ISessionToken, IBindableFromHttpContext<TSelf> where TSelf : class, ISessionToken<TSelf>
Type Parameters
| Name | Description |
|---|---|
| TSelf | The session token type. |
Explicit Interface Implementations
| Name | Description |
|---|---|
| IBindableFromHttpContext<TSelf>.BindAsync(HttpContext, ParameterInfo) | Binds the session token parameter of an endpoint with BindSessionTokenAsync<TSessionToken>(HttpContext, ParameterInfo). |