MiddlewareFilterAttribute Klasa

Definicja

Wykonuje potok oprogramowania pośredniczącego dostarczony przez usługę ConfigurationType. Potok oprogramowania pośredniczącego będzie traktowany jako filtr zasobów asynchronicznych.

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
Dziedziczenie
MiddlewareFilterAttribute
Pochodne
Atrybuty
Implementuje

Konstruktory

MiddlewareFilterAttribute(Type)

Tworzy wystąpienie nowego wystąpienia .MiddlewareFilterAttribute

Właściwości

ConfigurationType

Typ, który konfiguruje potok oprogramowania pośredniczącego.

IsReusable

Pobiera wartość wskazującą, czy wynik CreateInstance(IServiceProvider) może zostać ponownie użyty w żądaniach.

Order

Pobiera wartość zamówienia do określania kolejności wykonywania filtrów. Filtry są wykonywane w rosnącej wartości liczbowej Order właściwości.

Metody

CreateInstance(IServiceProvider)

Tworzy wystąpienie filtru wykonywalnego.

Dotyczy