MiddlewareFilterAttribute Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Executes a middleware pipeline provided the by the ConfigurationType. The middleware pipeline will be treated as an async resource filter.
public ref class MiddlewareFilterAttribute : Attribute, Microsoft::AspNetCore::Mvc::Filters::IFilterFactory, Microsoft::AspNetCore::Mvc::Filters::IOrderedFilter
[System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Method, AllowMultiple=true, Inherited=true)]
public class MiddlewareFilterAttribute : Attribute, Microsoft.AspNetCore.Mvc.Filters.IFilterFactory, Microsoft.AspNetCore.Mvc.Filters.IOrderedFilter
[<System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Method, AllowMultiple=true, Inherited=true)>]
type MiddlewareFilterAttribute = class
inherit Attribute
interface IFilterFactory
interface IFilterMetadata
interface IOrderedFilter
Public Class MiddlewareFilterAttribute
Inherits Attribute
Implements IFilterFactory, IOrderedFilter
- Inheritance
-
MiddlewareFilterAttribute
- Derived
- Attributes
- Implements
Constructors
MiddlewareFilterAttribute(Type) |
Instantiates a new instance of MiddlewareFilterAttribute. |
Properties
ConfigurationType |
The type which configures a middleware pipeline. |
IsReusable |
Gets a value that indicates if the result of CreateInstance(IServiceProvider) can be reused across requests. |
Order |
Gets the order value for determining the order of execution of filters. Filters execute in ascending numeric value of the Order property. |
Methods
CreateInstance(IServiceProvider) |
Creates an instance of the executable filter. |