Class UserInitMiddleware
Middleware for initializing the user context for each incoming HTTP request.
Inheritance
object
UserInitMiddleware
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: DataWeb.Identity
Assembly: DataWeb.Core.dll
Syntax
public class UserInitMiddleware
Constructors
UserInitMiddleware(RequestDelegate)
Initializes a new instance of the UserInitMiddleware class.
Declaration
public UserInitMiddleware(RequestDelegate next)
Parameters
Type | Name | Description |
---|---|---|
RequestDelegate | next | The next middleware in the pipeline. |
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 Microsoft.AspNetCore.Http.HttpContext. |
Returns
Type | Description |
---|---|
Task |