DynamicRouteValueTransformer.FilterAsync Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
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 à
Commentaires
https://aka.ms/ContentUserFeedback.
Bientôt disponible : Tout au long de 2024, nous allons supprimer progressivement GitHub Issues comme mécanisme de commentaires pour le contenu et le remplacer par un nouveau système de commentaires. Pour plus d’informations, consultezEnvoyer et afficher des commentaires pour