29 instantiations of CandidateSet
Microsoft.AspNetCore.Mvc.Core.Test (8)
Routing\DynamicControllerEndpointMatcherPolicyTest.cs (8)
108
var candidates = new
CandidateSet
(endpoints, values, scores);
138
var candidates = new
CandidateSet
(endpoints, values, scores);
169
var candidates = new
CandidateSet
(endpoints, values, scores);
215
var candidates = new
CandidateSet
(endpoints, values, scores);
246
var candidates = new
CandidateSet
(endpoints, values, scores);
303
var candidates = new
CandidateSet
(endpoints, values, scores);
342
var candidates = new
CandidateSet
(endpoints, values, scores);
404
var candidates = new
CandidateSet
(endpoints, values, scores);
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation.Test (1)
PageLoaderMatcherPolicyTest.cs (1)
104
var candidateSet = new
CandidateSet
(
Microsoft.AspNetCore.Mvc.RazorPages.Test (8)
Infrastructure\DynamicPageEndpointMatcherPolicyTest.cs (8)
125
var candidates = new
CandidateSet
(endpoints, values, scores);
155
var candidates = new
CandidateSet
(endpoints, values, scores);
186
var candidates = new
CandidateSet
(endpoints, values, scores);
226
var candidates = new
CandidateSet
(endpoints, values, scores);
277
var candidates = new
CandidateSet
(endpoints, values, scores);
307
var candidates = new
CandidateSet
(endpoints, values, scores);
345
var candidates = new
CandidateSet
(endpoints, values, scores);
405
var candidates = new
CandidateSet
(endpoints, values, scores);
Microsoft.AspNetCore.Mvc.Test (1)
Routing\ActionConstraintMatcherPolicyTest.cs (1)
493
var candidateSet = new
CandidateSet
(
Microsoft.AspNetCore.Routing (2)
Matching\DfaMatcher.cs (2)
202
return _selector.SelectAsync(httpContext, new
CandidateSet
(candidateStateArray));
206
return SelectEndpointWithPoliciesAsync(httpContext, policies, new
CandidateSet
(candidateStateArray));
Microsoft.AspNetCore.Routing.Microbenchmarks (2)
src\Http\Routing\test\UnitTests\Matching\RouteMatcherBuilder.cs (1)
100
await _selector.SelectAsync(routeContext.HttpContext, new
CandidateSet
(_candidates, _values, _scores));
src\Http\Routing\test\UnitTests\Matching\TreeRouterMatcherBuilder.cs (1)
102
await _selector.SelectAsync(routeContext.HttpContext, new
CandidateSet
(_candidates, _values, _scores));
Microsoft.AspNetCore.Routing.Tests (7)
Matching\AcceptsMatcherPolicyTest.cs (1)
621
return new
CandidateSet
(endpoints, new RouteValueDictionary[endpoints.Length], new int[endpoints.Length]);
Matching\CandidateSetTest.cs (1)
353
var candidateSet = new
CandidateSet
(endpoints, values, Enumerable.Range(0, count).ToArray());
Matching\ContentEncodingNegotiationMatcherPolicyTest.cs (1)
629
private static CandidateSet CreateCandidateSet(params Endpoint[] endpoints) =>
new
(
Matching\DefaultEndpointSelectorTest.cs (1)
187
return new
CandidateSet
(endpoints, new RouteValueDictionary[endpoints.Length], scores);
Matching\HttpMethodMatcherPolicyTest.cs (1)
167
var candidates = new
CandidateSet
(endpoints, new RouteValueDictionary[endpoints.Length], Enumerable.Repeat<int>(-1, candidateNum).ToArray());
Matching\RouteMatcherBuilder.cs (1)
100
await _selector.SelectAsync(routeContext.HttpContext, new
CandidateSet
(_candidates, _values, _scores));
Matching\TreeRouterMatcherBuilder.cs (1)
102
await _selector.SelectAsync(routeContext.HttpContext, new
CandidateSet
(_candidates, _values, _scores));
127 references to CandidateSet
Microsoft.AspNetCore.Mvc.Core (4)
Routing\ActionConstraintMatcherPolicy.cs (3)
76
public Task ApplyAsync(HttpContext httpContext,
CandidateSet
candidateSet)
104
CandidateSet
candidateSet)
156
CandidateSet
candidateSet,
Routing\DynamicControllerEndpointMatcherPolicy.cs (1)
58
public async Task ApplyAsync(HttpContext httpContext,
CandidateSet
candidates)
Microsoft.AspNetCore.Mvc.Core.Test (8)
Routing\DynamicControllerEndpointMatcherPolicyTest.cs (8)
108
var
candidates = new CandidateSet(endpoints, values, scores);
138
var
candidates = new CandidateSet(endpoints, values, scores);
169
var
candidates = new CandidateSet(endpoints, values, scores);
215
var
candidates = new CandidateSet(endpoints, values, scores);
246
var
candidates = new CandidateSet(endpoints, values, scores);
303
var
candidates = new CandidateSet(endpoints, values, scores);
342
var
candidates = new CandidateSet(endpoints, values, scores);
404
var
candidates = new CandidateSet(endpoints, values, scores);
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation (3)
PageLoaderMatcherPolicy.cs (3)
19
/// until we need to load a page in the body of <see cref="ApplyAsync(HttpContext,
CandidateSet
)"/>.
55
public Task ApplyAsync(HttpContext httpContext,
CandidateSet
candidates)
95
private static async Task ApplyAsyncAwaited(PageLoader pageLoader,
CandidateSet
candidates, Task<CompiledPageActionDescriptor> actionDescriptorTask, int index)
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation.Test (5)
PageLoaderMatcherPolicyTest.cs (5)
22
var
candidateSet = CreateCandidateSet(compiled);
41
var
candidateSet = CreateCandidateSet(compiled);
68
var
candidateSet = CreateCandidateSet(compiled);
96
private static
CandidateSet
CreateCandidateSet(params ActionDescriptor[] actions)
104
var
candidateSet = new CandidateSet(
Microsoft.AspNetCore.Mvc.RazorPages (1)
Infrastructure\DynamicPageEndpointMatcherPolicy.cs (1)
61
public async Task ApplyAsync(HttpContext httpContext,
CandidateSet
candidates)
Microsoft.AspNetCore.Mvc.RazorPages.Test (8)
Infrastructure\DynamicPageEndpointMatcherPolicyTest.cs (8)
125
var
candidates = new CandidateSet(endpoints, values, scores);
155
var
candidates = new CandidateSet(endpoints, values, scores);
186
var
candidates = new CandidateSet(endpoints, values, scores);
226
var
candidates = new CandidateSet(endpoints, values, scores);
277
var
candidates = new CandidateSet(endpoints, values, scores);
307
var
candidates = new CandidateSet(endpoints, values, scores);
345
var
candidates = new CandidateSet(endpoints, values, scores);
405
var
candidates = new CandidateSet(endpoints, values, scores);
Microsoft.AspNetCore.Mvc.Test (12)
Routing\ActionConstraintMatcherPolicyTest.cs (12)
28
var
candidateSet = CreateCandidateSet(actions);
59
var
candidateSet = CreateCandidateSet(actions);
94
var
candidateSet = CreateCandidateSet(actions);
131
var
candidateSet = CreateCandidateSet(actions);
166
var
candidateSet = CreateCandidateSet(actions);
202
var
candidateSet = CreateCandidateSet(actions);
239
var
candidateSet = CreateCandidateSet(actions);
279
var
candidateSet = CreateCandidateSet(actions);
320
var
candidateSet = CreateCandidateSet(actions);
364
var
candidateSet = CreateCandidateSet(actions);
485
private static
CandidateSet
CreateCandidateSet(ActionDescriptor[] actions)
493
var
candidateSet = new CandidateSet(
Microsoft.AspNetCore.Routing (26)
IDynamicEndpointMetadata.cs (1)
23
/// part of a <see cref="
CandidateSet
"/>.
Matching\AcceptsMatcherPolicy.cs (1)
47
public Task ApplyAsync(HttpContext httpContext,
CandidateSet
candidates)
Matching\CandidateSet.cs (1)
24
/// Initializes a new instances of the <see cref="
CandidateSet
"/> class with the provided <paramref name="endpoints"/>,
Matching\CandidateState.cs (2)
9
/// The state associated with a candidate in a <see cref="
CandidateSet
"/>.
34
/// <see cref="
CandidateSet
"/>.
Matching\DefaultEndpointSelector.cs (4)
13
CandidateSet
candidateSet)
37
if (
CandidateSet
.IsValidCandidate(ref state))
66
if (!
CandidateSet
.IsValidCandidate(ref state))
115
if (
CandidateSet
.IsValidCandidate(ref state))
Matching\DfaMatcher.cs (3)
163
CandidateSet
.SetValidity(ref state, false);
173
CandidateSet
.SetValidity(ref state, false);
319
CandidateSet
candidateSet)
Matching\EndpointMetadataComparer.cs (1)
15
/// provider and provided to <see cref="
CandidateSet
.ExpandEndpoint(int, IReadOnlyList{Endpoint}, IComparer{Endpoint})"/>.
Matching\EndpointSelector.cs (3)
16
/// Asynchronously selects an <see cref="Endpoint"/> from the <see cref="
CandidateSet
"/>.
19
/// <param name="candidates">The <see cref="
CandidateSet
"/>.</param>
26
public abstract Task SelectAsync(HttpContext httpContext,
CandidateSet
candidates);
Matching\HostMatcherPolicy.cs (1)
71
public Task ApplyAsync(HttpContext httpContext,
CandidateSet
candidates)
Matching\HttpMethodMatcherPolicy.cs (1)
78
public Task ApplyAsync(HttpContext httpContext,
CandidateSet
candidates)
Matching\IEndpointComparerPolicy.cs (1)
16
/// Candidates in a <see cref="
CandidateSet
"/> are sorted based on their priority. Defining
Matching\IEndpointSelectorPolicy.cs (5)
10
/// in a <see cref="
CandidateSet
"/>. Implementations of <see cref="IEndpointSelectorPolicy"/> must
27
/// Applies the policy to the <see cref="
CandidateSet
"/>.
32
/// <param name="candidates">The <see cref="
CandidateSet
"/>.</param>
37
/// <see cref="
CandidateSet
.SetValidity(int, bool)"/> to <c>false</c> where desired.
46
Task ApplyAsync(HttpContext httpContext,
CandidateSet
candidates);
Matching\NegotiationMatcherPolicy.cs (2)
82
public Task ApplyAsync(HttpContext httpContext,
CandidateSet
candidates)
148
CandidateSet
candidates,
Microsoft.AspNetCore.Routing.Microbenchmarks (2)
Matching\MatcherBuilderMultipleEntryBenchmark.cs (2)
162
public Task ApplyAsync(HttpContext httpContext,
CandidateSet
candidates)
179
public Task ApplyAsync(HttpContext httpContext,
CandidateSet
candidates)
Microsoft.AspNetCore.Routing.Tests (58)
Matching\AcceptsMatcherPolicyTest.cs (12)
322
var
candidates = CreateCandidateSet(endpoints);
343
var
candidates = CreateCandidateSet(endpoints);
364
var
candidates = CreateCandidateSet(endpoints);
385
var
candidates = CreateCandidateSet(endpoints);
412
var
candidates = CreateCandidateSet(endpoints);
439
var
candidates = CreateCandidateSet(endpoints);
466
var
candidates = CreateCandidateSet(endpoints);
493
var
candidates = CreateCandidateSet(endpoints);
520
var
candidates = CreateCandidateSet(endpoints);
549
var
candidates = CreateCandidateSet(endpoints);
578
var
candidates = CreateCandidateSet(endpoints);
619
private static
CandidateSet
CreateCandidateSet(Endpoint[] endpoints)
Matching\CandidateSetTest.cs (9)
28
var
candidateSet = new CandidateSet(candidates);
58
var
candidateSet = new CandidateSet(candidates);
91
var
candidateSet = new CandidateSet(candidates);
121
var
candidateSet = new CandidateSet(candidates);
157
var
candidateSet = new CandidateSet(candidates);
207
var
candidateSet = new CandidateSet(candidates);
264
var
candidateSet = new CandidateSet(candidates);
314
var
candidateSet = new CandidateSet(candidates);
353
var
candidateSet = new CandidateSet(endpoints, values, Enumerable.Range(0, count).ToArray());
Matching\ContentEncodingNegotiationMatcherPolicyTest.cs (15)
76
var
endpoints = CreateCandidateSet(
96
var
endpoints = CreateCandidateSet(
116
var
endpoints = CreateCandidateSet(
136
var
endpoints = CreateCandidateSet(
156
var
endpoints = CreateCandidateSet(
176
var
endpoints = CreateCandidateSet(
195
var
endpoints = CreateCandidateSet(
215
var
endpoints = CreateCandidateSet(
237
var
endpoints = CreateCandidateSet(
256
var
endpoints = CreateCandidateSet(
275
var
endpoints = CreateCandidateSet(
294
var
endpoints = CreateCandidateSet(
313
var
endpoints = CreateCandidateSet(
332
var
endpoints = CreateCandidateSet(
629
private static
CandidateSet
CreateCandidateSet(params Endpoint[] endpoints) => new(
Matching\DefaultEndpointSelectorTest.cs (8)
17
var
candidateSet = CreateCandidateSet(endpoints, scores);
35
var
candidateSet = CreateCandidateSet(endpoints, scores);
56
var
candidateSet = CreateCandidateSet(endpoints, scores);
77
var
candidateSet = CreateCandidateSet(endpoints, scores);
98
var
candidateSet = CreateCandidateSet(endpoints, scores);
127
var
candidateSet = CreateCandidateSet(endpoints, scores);
151
var
candidateSet = CreateCandidateSet(endpoints, scores);
185
private static
CandidateSet
CreateCandidateSet(RouteEndpoint[] endpoints, int[] scores)
Matching\DfaMatcherTest.cs (13)
648
.Setup(s => s.SelectAsync(It.IsAny<HttpContext>(), It.IsAny<
CandidateSet
>()))
649
.Callback<HttpContext,
CandidateSet
>((c, cs) =>
694
.Setup(s => s.SelectAsync(It.IsAny<HttpContext>(), It.IsAny<
CandidateSet
>()))
695
.Callback<HttpContext,
CandidateSet
>((c, cs) =>
741
.Setup(s => s.SelectAsync(It.IsAny<HttpContext>(), It.IsAny<
CandidateSet
>()))
742
.Callback<HttpContext,
CandidateSet
>((c, cs) =>
962
.Setup(p => p.ApplyAsync(It.IsAny<HttpContext>(), It.IsAny<
CandidateSet
>()))
963
.Returns<HttpContext,
CandidateSet
>((c, cs) =>
998
.Setup(p => p.ApplyAsync(It.IsAny<HttpContext>(), It.IsAny<
CandidateSet
>()))
999
.Returns<HttpContext,
CandidateSet
>((c, cs) =>
1033
.Setup(p => p.ApplyAsync(It.IsAny<HttpContext>(), It.IsAny<
CandidateSet
>()))
1034
.Returns<HttpContext,
CandidateSet
>((c, cs) =>
1050
.Setup(p => p.ApplyAsync(It.IsAny<HttpContext>(), It.IsAny<
CandidateSet
>()))
Matching\HttpMethodMatcherPolicyTest.cs (1)
167
var
candidates = new CandidateSet(endpoints, new RouteValueDictionary[endpoints.Length], Enumerable.Repeat<int>(-1, candidateNum).ToArray());