Class AppRedirectMiddleware
Middleware for handling application redirects based on defined rules.
Inheritance
object
AppRedirectMiddleware
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: DataWeb.Http
Assembly: DataWeb.Core.dll
Syntax
public class AppRedirectMiddleware
Constructors
AppRedirectMiddleware(RequestDelegate)
Initializes a new instance of the AppRedirectMiddleware class.
Declaration
public AppRedirectMiddleware(RequestDelegate next)
Parameters
Type | Name | Description |
---|---|---|
RequestDelegate | next | The next middleware in the pipeline. |
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 Microsoft.AspNetCore.Http.HttpContext. |
Returns
Type | Description |
---|---|
Task |