CandidateSet(Endpoint[], RouteValueDictionary[], Int32[]) Constructor

Definition

Initializes a new instances of the CandidateSet class with the provided endpoints, values, and scores.

The constructor is provided to enable unit tests of implementations of EndpointSelector and IEndpointSelectorPolicy.

public:
 CandidateSet(cli::array <Microsoft::AspNetCore::Http::Endpoint ^> ^ endpoints, cli::array <Microsoft::AspNetCore::Routing::RouteValueDictionary ^> ^ values, cli::array <int> ^ scores);
public CandidateSet (Microsoft.AspNetCore.Http.Endpoint[] endpoints, Microsoft.AspNetCore.Routing.RouteValueDictionary[] values, int[] scores);
new Microsoft.AspNetCore.Routing.Matching.CandidateSet : Microsoft.AspNetCore.Http.Endpoint[] * Microsoft.AspNetCore.Routing.RouteValueDictionary[] * int[] -> Microsoft.AspNetCore.Routing.Matching.CandidateSet
Public Sub New (endpoints As Endpoint(), values As RouteValueDictionary(), scores As Integer())

Parameters

endpoints
Endpoint[]

The list of endpoints, sorted in descending priority order.

values
RouteValueDictionary[]

The list of RouteValueDictionary instances.

scores
Int32[]

The list of endpoint scores. Score.

Applies to