Class UserInitMiddleware
Middleware for initializing the user context for each incoming HTTP request.
Inherited Members
Namespace: DataWeb.Identity
Assembly: DataWeb.Core.dll
Syntax
public sealed class UserInitMiddleware
Remarks
Initializes a new instance of the UserInitMiddleware class.
Constructors
UserInitMiddleware(RequestDelegate)
Middleware for initializing the user context for each incoming HTTP request.
Declaration
public UserInitMiddleware(RequestDelegate next)
Parameters
Type | Name | Description |
---|---|---|
RequestDelegate | next | The next middleware in the pipeline. |
Remarks
Initializes a new instance of the UserInitMiddleware class.
Methods
Invoke(HttpContext)
Invokes the middleware to initialize the user context for the current request.
Declaration
public Task Invoke(HttpContext context)
Parameters
Type | Name | Description |
---|---|---|
HttpContext | context | The HttpContext. |
Returns
Type | Description |
---|---|
Task |