HostMatcherPolicy Classe
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.
MatcherPolicy qui implémente le filtrage et la sélection par l’en-tête d’hôte d’une requête.
public ref class HostMatcherPolicy sealed : Microsoft::AspNetCore::Routing::MatcherPolicy, Microsoft::AspNetCore::Routing::Matching::IEndpointComparerPolicy, Microsoft::AspNetCore::Routing::Matching::IEndpointSelectorPolicy, Microsoft::AspNetCore::Routing::Matching::INodeBuilderPolicy
public sealed class HostMatcherPolicy : Microsoft.AspNetCore.Routing.MatcherPolicy, Microsoft.AspNetCore.Routing.Matching.IEndpointComparerPolicy, Microsoft.AspNetCore.Routing.Matching.IEndpointSelectorPolicy, Microsoft.AspNetCore.Routing.Matching.INodeBuilderPolicy
type HostMatcherPolicy = class
inherit MatcherPolicy
interface IEndpointComparerPolicy
interface INodeBuilderPolicy
interface IEndpointSelectorPolicy
type HostMatcherPolicy = class
inherit MatcherPolicy
interface IEndpointComparerPolicy
interface IEndpointSelectorPolicy
interface INodeBuilderPolicy
Public NotInheritable Class HostMatcherPolicy
Inherits MatcherPolicy
Implements IEndpointComparerPolicy, IEndpointSelectorPolicy, INodeBuilderPolicy
- Héritage
- Implémente
Constructeurs
| HostMatcherPolicy() |
MatcherPolicy qui implémente le filtrage et la sélection par l’en-tête d’hôte d’une requête. |
Propriétés
| Comparer |
Obtient un IComparer<T> qui sera utilisé pour trier les points de terminaison. |
| Order |
Obtient une valeur qui détermine l’ordre dans lequel doit MatcherPolicy être appliqué. Les stratégies sont appliquées à la valeur numérique croissante de la Order propriété . |
Méthodes
| ApplyAsync(HttpContext, CandidateSet) |
Applique la stratégie au CandidateSet. |
| BuildJumpTable(Int32, IReadOnlyList<PolicyJumpTableEdge>) |
Construit une table de saut en fonction d’un ensemble de |
| GetEdges(IReadOnlyList<Endpoint>) |
Génère un graphique qui représente la relation entre les points de terminaison et les hôtes. |
Implémentations d’interfaces explicites
| IEndpointSelectorPolicy.AppliesToEndpoints(IReadOnlyList<Endpoint>) |
MatcherPolicy qui implémente le filtrage et la sélection par l’en-tête d’hôte d’une requête. |
| INodeBuilderPolicy.AppliesToEndpoints(IReadOnlyList<Endpoint>) |
MatcherPolicy qui implémente le filtrage et la sélection par l’en-tête d’hôte d’une requête. |