Search Results for

    Show / Hide Table of Contents

    Class ApiProxyMiddleware

    Middleware for handling requests to the /imagevaultws endpoints

    Inheritance
    System.Object
    ApiProxyMiddleware
    Namespace: ImageVault.EPiServer.Middleware
    Assembly: ImageVault.EPiServer.dll
    Syntax
    public class ApiProxyMiddleware : Object

    Constructors

    ApiProxyMiddleware(RequestDelegate, IOptions<ImageVaultClientOptions>, ILogger<ApiProxyMiddleware>, IClientFactory, IHttpWebRequestFactory)

    Declaration
    public ApiProxyMiddleware(RequestDelegate next, IOptions<ImageVaultClientOptions> options, ILogger<ApiProxyMiddleware> logger, IClientFactory clientFactory, IHttpWebRequestFactory httpWebRequestFactory)
    Parameters
    Type Name Description
    Microsoft.AspNetCore.Http.RequestDelegate next
    Microsoft.Extensions.Options.IOptions<ImageVaultClientOptions> options
    Microsoft.Extensions.Logging.ILogger<ApiProxyMiddleware> logger
    IClientFactory clientFactory
    IHttpWebRequestFactory httpWebRequestFactory

    Fields

    XForwardedUrlHeaderName

    Name of header that contains the original url for the proxy request

    Declaration
    public const string XForwardedUrlHeaderName = "X-Forwarded-Url"
    Field Value
    Type Description
    System.String

    Methods

    Invoke(HttpContext)

    Declaration
    public Task Invoke(HttpContext context)
    Parameters
    Type Name Description
    Microsoft.AspNetCore.Http.HttpContext context
    Returns
    Type Description
    System.Threading.Tasks.Task
    In This Article
    Back to top (c) Meriworks 2002-2022