MiddlewareFilterAttribute Třída

Definice

Spustí kanál middlewaru, který ConfigurationTypeposkytuje . Kanál middlewaru se bude považovat za asynchronní filtr prostředků.

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
Dědičnost
MiddlewareFilterAttribute
Odvozené
Atributy
Implementuje

Konstruktory

MiddlewareFilterAttribute(Type)

Vytvoří instanci nové instance .MiddlewareFilterAttribute

Vlastnosti

ConfigurationType

Typ, který konfiguruje kanál middlewaru.

IsReusable

Získá hodnotu, která označuje, zda lze výsledek CreateInstance(IServiceProvider) znovu použít napříč požadavky.

Order

Získá hodnotu pořadí pro určení pořadí provádění filtrů. Filtry se spouštějí ve vzestupné číselné hodnotě Order vlastnosti .

Metody

CreateInstance(IServiceProvider)

Vytvoří instanci spustitelného filtru.

Platí pro