DynamicRouteValueTransformer.FilterAsync Methode
Definition
Wichtig
Einige Informationen beziehen sich auf Vorabversionen, die vor dem Release ggf. grundlegend überarbeitet werden. Microsoft übernimmt hinsichtlich der hier bereitgestellten Informationen keine Gewährleistungen, seien sie ausdrücklich oder konkludent.
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:
Feedback
https://aka.ms/ContentUserFeedback.
Bald verfügbar: Im Laufe des Jahres 2024 werden wir GitHub-Issues stufenweise als Feedbackmechanismus für Inhalte abbauen und durch ein neues Feedbacksystem ersetzen. Weitere Informationen finden Sie unterFeedback senden und anzeigen für