Partager via


DynamicRouteValueTransformer.FilterAsync Méthode

Définition

Filtre l’ensemble de points de terminaison qui ont été choisis à la suite d’une recherche en fonction des valeurs d’itinéraire retournées par TransformAsync(HttpContext, RouteValueDictionary).

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))

Paramètres

httpContext
HttpContext

HttpContext associé à la demande actuelle.

values
RouteValueDictionary

Valeurs de route retournées à partir de TransformAsync(HttpContext, RouteValueDictionary).

endpoints
IReadOnlyList<Endpoint>

Points de terminaison qui ont été choisis à la suite d’une recherche basée sur les valeurs de routage retournées par TransformAsync(HttpContext, RouteValueDictionary).

Retours

Retourne de manière asynchrone une liste de points de terminaison à appliquer à la collection de correspondances.

Remarques

Les implémentations de FilterAsync(HttpContext, RouteValueDictionary, IReadOnlyList<Endpoint>) peuvent affiner davantage la liste des points de terminaison choisis en fonction de la correspondance des valeurs de routage en retournant une nouvelle liste de points de terminaison basée sur endpoints.

FilterAsync(HttpContext, RouteValueDictionary, IReadOnlyList<Endpoint>) ne sera pas appelé dans le cas où aucun point de terminaison n’a été mis en correspondance en fonction des valeurs de routage.

S’applique à