Class UserInitMiddlewareExtensions
Extension methods for configuring the UserInitMiddleware in the middleware pipeline.
Inheritance
object
UserInitMiddlewareExtensions
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 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 Microsoft.AspNetCore.Builder.IApplicationBuilder with the middleware added. |