Search Results for

    Show / Hide Table of Contents
    View Source

    Class ProtectRecycleBinMediaMiddleware

    Ensures that requests to the media in the recycle bin are authorized and only authenticated back-office users with permissions for the media have access.

    Inheritance
    object
    Namespace: Umbraco.Cms.Web.Common.Middleware
    Assembly: Umbraco.Web.Common.dll
    Syntax
    public class ProtectRecycleBinMediaMiddleware

    Constructors

    View Source

    ProtectRecycleBinMediaMiddleware(IUserService, IOptionsMonitor<ContentSettings>)

    Initializes a new instance of the ProtectRecycleBinMediaMiddleware class.

    Declaration
    public ProtectRecycleBinMediaMiddleware(IUserService userService, IOptionsMonitor<ContentSettings> contentSettings)
    Parameters
    Type Name Description
    IUserService userService
    IOptionsMonitor<ContentSettings> contentSettings

    Methods

    View Source

    InvokeAsync(HttpContext, RequestDelegate)

    Declaration
    public Task InvokeAsync(HttpContext context, RequestDelegate next)
    Parameters
    Type Name Description
    HttpContext context
    RequestDelegate next
    Returns
    Type Description
    Task
    • View Source
    In this article
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX