RequestSizeLimitResourceFilter RequestSizeLimitResourceFilter RequestSizeLimitResourceFilter Class

Definition

A filter that sets the MaxRequestBodySize to the specified Bytes.

public class RequestSizeLimitResourceFilter : Microsoft.AspNetCore.Mvc.Filters.IResourceFilter, Microsoft.AspNetCore.Mvc.IRequestSizePolicy
type RequestSizeLimitResourceFilter = class
    interface IResourceFilter
    interface IFilterMetadata
    interface IRequestSizePolicy
Public Class RequestSizeLimitResourceFilter
Implements IRequestSizePolicy, IResourceFilter
Inheritance
RequestSizeLimitResourceFilterRequestSizeLimitResourceFilterRequestSizeLimitResourceFilter
Implements

Constructors

RequestSizeLimitResourceFilter(ILoggerFactory) RequestSizeLimitResourceFilter(ILoggerFactory) RequestSizeLimitResourceFilter(ILoggerFactory)

Creates a new instance of RequestSizeLimitResourceFilter.

Properties

Bytes Bytes Bytes

Methods

OnResourceExecuted(ResourceExecutedContext) OnResourceExecuted(ResourceExecutedContext) OnResourceExecuted(ResourceExecutedContext)
OnResourceExecuting(ResourceExecutingContext) OnResourceExecuting(ResourceExecutingContext) OnResourceExecuting(ResourceExecutingContext)

Sets the MaxRequestBodySize to Bytes.

Applies to