Freigeben über


DynamicRouteValueTransformer.FilterAsync Methode

Definition

Filtert den Satz von Endpunkten, die als Ergebnis der Suche ausgewählt wurden, basierend auf den von TransformAsync(HttpContext, RouteValueDictionary)zurückgegebenen Routenwerten.

public:
 virtual System::Threading::Tasks::ValueTask<System::Collections::Generic::IReadOnlyList<Microsoft::AspNetCore::Http::Endpoint ^> ^> FilterAsync(Microsoft::AspNetCore::Http::HttpContext ^ httpContext, Microsoft::AspNetCore::Routing::RouteValueDictionary ^ values, System::Collections::Generic::IReadOnlyList<Microsoft::AspNetCore::Http::Endpoint ^> ^ endpoints);
public virtual System.Threading.Tasks.ValueTask<System.Collections.Generic.IReadOnlyList<Microsoft.AspNetCore.Http.Endpoint>> FilterAsync (Microsoft.AspNetCore.Http.HttpContext httpContext, Microsoft.AspNetCore.Routing.RouteValueDictionary values, System.Collections.Generic.IReadOnlyList<Microsoft.AspNetCore.Http.Endpoint> endpoints);
abstract member FilterAsync : Microsoft.AspNetCore.Http.HttpContext * Microsoft.AspNetCore.Routing.RouteValueDictionary * System.Collections.Generic.IReadOnlyList<Microsoft.AspNetCore.Http.Endpoint> -> System.Threading.Tasks.ValueTask<System.Collections.Generic.IReadOnlyList<Microsoft.AspNetCore.Http.Endpoint>>
override this.FilterAsync : Microsoft.AspNetCore.Http.HttpContext * Microsoft.AspNetCore.Routing.RouteValueDictionary * System.Collections.Generic.IReadOnlyList<Microsoft.AspNetCore.Http.Endpoint> -> System.Threading.Tasks.ValueTask<System.Collections.Generic.IReadOnlyList<Microsoft.AspNetCore.Http.Endpoint>>
Public Overridable Function FilterAsync (httpContext As HttpContext, values As RouteValueDictionary, endpoints As IReadOnlyList(Of Endpoint)) As ValueTask(Of IReadOnlyList(Of Endpoint))

Parameter

httpContext
HttpContext

Die HttpContext , die der aktuellen Anforderung zugeordnet ist.

values
RouteValueDictionary

Die von TransformAsync(HttpContext, RouteValueDictionary)zurückgegebenen Routenwerte.

endpoints
IReadOnlyList<Endpoint>

Die Endpunkte, die als Ergebnis der Suche basierend auf den von TransformAsync(HttpContext, RouteValueDictionary)zurückgegebenen Routenwerten ausgewählt wurden.

Gibt zurück

Gibt asynchron eine Liste von Endpunkten zurück, die auf die Matches-Auflistung angewendet werden sollen.

Hinweise

Implementierungen von FilterAsync(HttpContext, RouteValueDictionary, IReadOnlyList<Endpoint>) können die Liste der Endpunkte, die basierend auf dem Routenwertabgleich ausgewählt werden, weiter verfeinern, indem eine neue Liste von Endpunkten basierend auf zurückgegeben wird endpoints.

FilterAsync(HttpContext, RouteValueDictionary, IReadOnlyList<Endpoint>) wird nicht aufgerufen, wenn null Endpunkte basierend auf Routenwerten abgeglichen wurden.

Gilt für: