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 SourceProtectRecycleBinMediaMiddleware(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 SourceInvokeAsync(HttpContext, RequestDelegate)
Declaration
public Task InvokeAsync(HttpContext context, RequestDelegate next)
Parameters
| Type | Name | Description |
|---|---|---|
| HttpContext | context | |
| RequestDelegate | next |
Returns
| Type | Description |
|---|---|
| Task |