29 instantiations of CandidateSet
Microsoft.AspNetCore.Mvc.Core.Test (8)
Routing\DynamicControllerEndpointMatcherPolicyTest.cs (8)
108var candidates = new CandidateSet(endpoints, values, scores); 138var candidates = new CandidateSet(endpoints, values, scores); 169var candidates = new CandidateSet(endpoints, values, scores); 215var candidates = new CandidateSet(endpoints, values, scores); 246var candidates = new CandidateSet(endpoints, values, scores); 303var candidates = new CandidateSet(endpoints, values, scores); 342var candidates = new CandidateSet(endpoints, values, scores); 404var candidates = new CandidateSet(endpoints, values, scores);
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation.Test (1)
PageLoaderMatcherPolicyTest.cs (1)
104var candidateSet = new CandidateSet(
Microsoft.AspNetCore.Mvc.RazorPages.Test (8)
Infrastructure\DynamicPageEndpointMatcherPolicyTest.cs (8)
125var candidates = new CandidateSet(endpoints, values, scores); 155var candidates = new CandidateSet(endpoints, values, scores); 186var candidates = new CandidateSet(endpoints, values, scores); 226var candidates = new CandidateSet(endpoints, values, scores); 277var candidates = new CandidateSet(endpoints, values, scores); 307var candidates = new CandidateSet(endpoints, values, scores); 345var candidates = new CandidateSet(endpoints, values, scores); 405var candidates = new CandidateSet(endpoints, values, scores);
Microsoft.AspNetCore.Mvc.Test (1)
Routing\ActionConstraintMatcherPolicyTest.cs (1)
493var candidateSet = new CandidateSet(
Microsoft.AspNetCore.Routing (2)
Matching\DfaMatcher.cs (2)
202return _selector.SelectAsync(httpContext, new CandidateSet(candidateStateArray)); 206return SelectEndpointWithPoliciesAsync(httpContext, policies, new CandidateSet(candidateStateArray));
Microsoft.AspNetCore.Routing.Microbenchmarks (2)
src\Http\Routing\test\UnitTests\Matching\RouteMatcherBuilder.cs (1)
100await _selector.SelectAsync(routeContext.HttpContext, new CandidateSet(_candidates, _values, _scores));
src\Http\Routing\test\UnitTests\Matching\TreeRouterMatcherBuilder.cs (1)
102await _selector.SelectAsync(routeContext.HttpContext, new CandidateSet(_candidates, _values, _scores));
Microsoft.AspNetCore.Routing.Tests (7)
Matching\AcceptsMatcherPolicyTest.cs (1)
621return new CandidateSet(endpoints, new RouteValueDictionary[endpoints.Length], new int[endpoints.Length]);
Matching\CandidateSetTest.cs (1)
353var candidateSet = new CandidateSet(endpoints, values, Enumerable.Range(0, count).ToArray());
Matching\ContentEncodingNegotiationMatcherPolicyTest.cs (1)
629private static CandidateSet CreateCandidateSet(params Endpoint[] endpoints) => new(
Matching\DefaultEndpointSelectorTest.cs (1)
187return new CandidateSet(endpoints, new RouteValueDictionary[endpoints.Length], scores);
Matching\HttpMethodMatcherPolicyTest.cs (1)
167var candidates = new CandidateSet(endpoints, new RouteValueDictionary[endpoints.Length], Enumerable.Repeat<int>(-1, candidateNum).ToArray());
Matching\RouteMatcherBuilder.cs (1)
100await _selector.SelectAsync(routeContext.HttpContext, new CandidateSet(_candidates, _values, _scores));
Matching\TreeRouterMatcherBuilder.cs (1)
102await _selector.SelectAsync(routeContext.HttpContext, new CandidateSet(_candidates, _values, _scores));
127 references to CandidateSet
Microsoft.AspNetCore.Mvc.Core (4)
Routing\ActionConstraintMatcherPolicy.cs (3)
76public Task ApplyAsync(HttpContext httpContext, CandidateSet candidateSet) 104CandidateSet candidateSet) 156CandidateSet candidateSet,
Routing\DynamicControllerEndpointMatcherPolicy.cs (1)
58public async Task ApplyAsync(HttpContext httpContext, CandidateSet candidates)
Microsoft.AspNetCore.Mvc.Core.Test (8)
Routing\DynamicControllerEndpointMatcherPolicyTest.cs (8)
108var candidates = new CandidateSet(endpoints, values, scores); 138var candidates = new CandidateSet(endpoints, values, scores); 169var candidates = new CandidateSet(endpoints, values, scores); 215var candidates = new CandidateSet(endpoints, values, scores); 246var candidates = new CandidateSet(endpoints, values, scores); 303var candidates = new CandidateSet(endpoints, values, scores); 342var candidates = new CandidateSet(endpoints, values, scores); 404var 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)"/>. 55public Task ApplyAsync(HttpContext httpContext, CandidateSet candidates) 95private static async Task ApplyAsyncAwaited(PageLoader pageLoader, CandidateSet candidates, Task<CompiledPageActionDescriptor> actionDescriptorTask, int index)
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation.Test (5)
PageLoaderMatcherPolicyTest.cs (5)
22var candidateSet = CreateCandidateSet(compiled); 41var candidateSet = CreateCandidateSet(compiled); 68var candidateSet = CreateCandidateSet(compiled); 96private static CandidateSet CreateCandidateSet(params ActionDescriptor[] actions) 104var candidateSet = new CandidateSet(
Microsoft.AspNetCore.Mvc.RazorPages (1)
Infrastructure\DynamicPageEndpointMatcherPolicy.cs (1)
61public async Task ApplyAsync(HttpContext httpContext, CandidateSet candidates)
Microsoft.AspNetCore.Mvc.RazorPages.Test (8)
Infrastructure\DynamicPageEndpointMatcherPolicyTest.cs (8)
125var candidates = new CandidateSet(endpoints, values, scores); 155var candidates = new CandidateSet(endpoints, values, scores); 186var candidates = new CandidateSet(endpoints, values, scores); 226var candidates = new CandidateSet(endpoints, values, scores); 277var candidates = new CandidateSet(endpoints, values, scores); 307var candidates = new CandidateSet(endpoints, values, scores); 345var candidates = new CandidateSet(endpoints, values, scores); 405var candidates = new CandidateSet(endpoints, values, scores);
Microsoft.AspNetCore.Mvc.Test (12)
Routing\ActionConstraintMatcherPolicyTest.cs (12)
28var candidateSet = CreateCandidateSet(actions); 59var candidateSet = CreateCandidateSet(actions); 94var candidateSet = CreateCandidateSet(actions); 131var candidateSet = CreateCandidateSet(actions); 166var candidateSet = CreateCandidateSet(actions); 202var candidateSet = CreateCandidateSet(actions); 239var candidateSet = CreateCandidateSet(actions); 279var candidateSet = CreateCandidateSet(actions); 320var candidateSet = CreateCandidateSet(actions); 364var candidateSet = CreateCandidateSet(actions); 485private static CandidateSet CreateCandidateSet(ActionDescriptor[] actions) 493var candidateSet = new CandidateSet(
Microsoft.AspNetCore.Routing (26)
IDynamicEndpointMetadata.cs (1)
23/// part of a <see cref="CandidateSet"/>.
Matching\AcceptsMatcherPolicy.cs (1)
47public 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)
13CandidateSet candidateSet) 37if (CandidateSet.IsValidCandidate(ref state)) 66if (!CandidateSet.IsValidCandidate(ref state)) 115if (CandidateSet.IsValidCandidate(ref state))
Matching\DfaMatcher.cs (3)
163CandidateSet.SetValidity(ref state, false); 173CandidateSet.SetValidity(ref state, false); 319CandidateSet 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> 26public abstract Task SelectAsync(HttpContext httpContext, CandidateSet candidates);
Matching\HostMatcherPolicy.cs (1)
71public Task ApplyAsync(HttpContext httpContext, CandidateSet candidates)
Matching\HttpMethodMatcherPolicy.cs (1)
78public 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. 46Task ApplyAsync(HttpContext httpContext, CandidateSet candidates);
Matching\NegotiationMatcherPolicy.cs (2)
82public Task ApplyAsync(HttpContext httpContext, CandidateSet candidates) 148CandidateSet candidates,
Microsoft.AspNetCore.Routing.Microbenchmarks (2)
Matching\MatcherBuilderMultipleEntryBenchmark.cs (2)
162public Task ApplyAsync(HttpContext httpContext, CandidateSet candidates) 179public Task ApplyAsync(HttpContext httpContext, CandidateSet candidates)
Microsoft.AspNetCore.Routing.Tests (58)
Matching\AcceptsMatcherPolicyTest.cs (12)
322var candidates = CreateCandidateSet(endpoints); 343var candidates = CreateCandidateSet(endpoints); 364var candidates = CreateCandidateSet(endpoints); 385var candidates = CreateCandidateSet(endpoints); 412var candidates = CreateCandidateSet(endpoints); 439var candidates = CreateCandidateSet(endpoints); 466var candidates = CreateCandidateSet(endpoints); 493var candidates = CreateCandidateSet(endpoints); 520var candidates = CreateCandidateSet(endpoints); 549var candidates = CreateCandidateSet(endpoints); 578var candidates = CreateCandidateSet(endpoints); 619private static CandidateSet CreateCandidateSet(Endpoint[] endpoints)
Matching\CandidateSetTest.cs (9)
28var candidateSet = new CandidateSet(candidates); 58var candidateSet = new CandidateSet(candidates); 91var candidateSet = new CandidateSet(candidates); 121var candidateSet = new CandidateSet(candidates); 157var candidateSet = new CandidateSet(candidates); 207var candidateSet = new CandidateSet(candidates); 264var candidateSet = new CandidateSet(candidates); 314var candidateSet = new CandidateSet(candidates); 353var candidateSet = new CandidateSet(endpoints, values, Enumerable.Range(0, count).ToArray());
Matching\ContentEncodingNegotiationMatcherPolicyTest.cs (15)
76var endpoints = CreateCandidateSet( 96var endpoints = CreateCandidateSet( 116var endpoints = CreateCandidateSet( 136var endpoints = CreateCandidateSet( 156var endpoints = CreateCandidateSet( 176var endpoints = CreateCandidateSet( 195var endpoints = CreateCandidateSet( 215var endpoints = CreateCandidateSet( 237var endpoints = CreateCandidateSet( 256var endpoints = CreateCandidateSet( 275var endpoints = CreateCandidateSet( 294var endpoints = CreateCandidateSet( 313var endpoints = CreateCandidateSet( 332var endpoints = CreateCandidateSet( 629private static CandidateSet CreateCandidateSet(params Endpoint[] endpoints) => new(
Matching\DefaultEndpointSelectorTest.cs (8)
17var candidateSet = CreateCandidateSet(endpoints, scores); 35var candidateSet = CreateCandidateSet(endpoints, scores); 56var candidateSet = CreateCandidateSet(endpoints, scores); 77var candidateSet = CreateCandidateSet(endpoints, scores); 98var candidateSet = CreateCandidateSet(endpoints, scores); 127var candidateSet = CreateCandidateSet(endpoints, scores); 151var candidateSet = CreateCandidateSet(endpoints, scores); 185private 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)
167var candidates = new CandidateSet(endpoints, new RouteValueDictionary[endpoints.Length], Enumerable.Repeat<int>(-1, candidateNum).ToArray());