Class AppRedirectMiddleware
Middleware for handling application redirects based on defined rules.
Inherited Members
Namespace: DataWeb.Http
Assembly: DataWeb.Core.dll
Syntax
public sealed class AppRedirectMiddleware
Remarks
Initializes a new instance of the AppRedirectMiddleware class.
Constructors
AppRedirectMiddleware(RequestDelegate)
Middleware for handling application redirects based on defined rules.
Declaration
public AppRedirectMiddleware(RequestDelegate next)
Parameters
Type | Name | Description |
---|---|---|
RequestDelegate | next | The next middleware in the pipeline. |
Remarks
Initializes a new instance of the AppRedirectMiddleware class.
Methods
Invoke(HttpContext)
Invokes the middleware to handle the incoming HTTP request and redirect if applicable.
Declaration
public Task Invoke(HttpContext context)
Parameters
Type | Name | Description |
---|---|---|
HttpContext | context | The HttpContext. |
Returns
Type | Description |
---|---|
Task |