Class UserInitMiddlewareExtensions
Extension methods for configuring the UserInitMiddleware in the middleware pipeline.
Inherited Members
Namespace: DataWeb.Identity
Assembly: DataWeb.Core.dll
Syntax
public static class UserInitMiddlewareExtensions
Methods
UseUserInit(IApplicationBuilder)
Adds the UserInitMiddleware to the middleware pipeline to initialize the user context for each request.
Declaration
public static IApplicationBuilder UseUserInit(this IApplicationBuilder builder)
Parameters
Type | Name | Description |
---|---|---|
IApplicationBuilder | builder | The application builder. |
Returns
Type | Description |
---|---|
IApplicationBuilder | The IApplicationBuilder with the middleware added. |