Search Results for

    Show / Hide Table of Contents

    Class MediaProxyMiddleware

    Middleware for handling requests to the /ImageVault/media|publishedmedia endpoints

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

    Constructors

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

    Constructor

    Declaration
    public MediaProxyMiddleware(RequestDelegate next, IOptions<ImageVaultClientOptions> options, ILogger<MediaProxyMiddleware> logger, IClientFactory clientFactory, IHttpWebRequestFactory httpWebRequestFactory)
    Parameters
    Type Name Description
    Microsoft.AspNetCore.Http.RequestDelegate next
    Microsoft.Extensions.Options.IOptions<ImageVaultClientOptions> options
    Microsoft.Extensions.Logging.ILogger<MediaProxyMiddleware> 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)

    Handles requests to the middleware?

    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