CandidateSet.ExpandEndpoint Metoda

Definice

Endpoint Nahradí zadanou index endpointspoložku .

public:
 void ExpandEndpoint(int index, System::Collections::Generic::IReadOnlyList<Microsoft::AspNetCore::Http::Endpoint ^> ^ endpoints, System::Collections::Generic::IComparer<Microsoft::AspNetCore::Http::Endpoint ^> ^ comparer);
public void ExpandEndpoint (int index, System.Collections.Generic.IReadOnlyList<Microsoft.AspNetCore.Http.Endpoint> endpoints, System.Collections.Generic.IComparer<Microsoft.AspNetCore.Http.Endpoint> comparer);
member this.ExpandEndpoint : int * System.Collections.Generic.IReadOnlyList<Microsoft.AspNetCore.Http.Endpoint> * System.Collections.Generic.IComparer<Microsoft.AspNetCore.Http.Endpoint> -> unit
Public Sub ExpandEndpoint (index As Integer, endpoints As IReadOnlyList(Of Endpoint), comparer As IComparer(Of Endpoint))

Parametry

index
Int32

Index kandidáta.

endpoints
IReadOnlyList<Endpoint>

Seznam koncových bodů Endpoint , které se mají nahradit původní Endpoint v souboru index. Pokud endpoints je prázdný, kandidát bude označen jako neplatný.

comparer
IComparer<Endpoint>

Porovnávač koncových bodů použitý k seřazení koncových bodů. Lze načíst od poskytovatele služeb jako typ EndpointMetadataComparer.

Poznámky

Tato metoda podporuje nahrazení dynamického koncového bodu kolekcí koncových bodů a spoléhat se na IEndpointSelectorPolicy implementace k dalšímu rozsažení.

Nahrazení koncového bodu by mělo mít jedinečnou hodnotu skóre. Skóre je kombinace priority tras patteru, pořadí a vyhodnocení metadat zásad. Dynamický koncový bod nebude fungovat správně, pokud existují jiné koncové body se stejným skóre.

Platí pro