DataWeb
Search Results for

    Show / Hide Table of Contents

    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.ReferenceEquals(object, object)
    object.ToString()
    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
    In this article
    Back to top Generated by DocFX