9 implementations of IEndpointSelectorPolicy
Microsoft.AspNetCore.Mvc.Core (2)
Routing\ActionConstraintMatcherPolicy.cs (1)
15
internal sealed class ActionConstraintMatcherPolicy : MatcherPolicy,
IEndpointSelectorPolicy
Routing\DynamicControllerEndpointMatcherPolicy.cs (1)
14
internal sealed class DynamicControllerEndpointMatcherPolicy : MatcherPolicy,
IEndpointSelectorPolicy
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation (1)
PageLoaderMatcherPolicy.cs (1)
11
internal sealed class PageLoaderMatcherPolicy : MatcherPolicy,
IEndpointSelectorPolicy
Microsoft.AspNetCore.Mvc.RazorPages (1)
Infrastructure\DynamicPageEndpointMatcherPolicy.cs (1)
14
internal sealed class DynamicPageEndpointMatcherPolicy : MatcherPolicy,
IEndpointSelectorPolicy
Microsoft.AspNetCore.Routing (4)
Matching\AcceptsMatcherPolicy.cs (1)
11
internal sealed class AcceptsMatcherPolicy : MatcherPolicy, IEndpointComparerPolicy, INodeBuilderPolicy,
IEndpointSelectorPolicy
Matching\HostMatcherPolicy.cs (1)
14
public sealed class HostMatcherPolicy : MatcherPolicy, IEndpointComparerPolicy, INodeBuilderPolicy,
IEndpointSelectorPolicy
Matching\HttpMethodMatcherPolicy.cs (1)
16
public sealed class HttpMethodMatcherPolicy : MatcherPolicy, IEndpointComparerPolicy, INodeBuilderPolicy,
IEndpointSelectorPolicy
Matching\NegotiationMatcherPolicy.cs (1)
10
internal abstract class NegotiationMatcherPolicy<TNegotiateMetadata> : MatcherPolicy,
IEndpointSelectorPolicy
, INodeBuilderPolicy, IEndpointComparerPolicy
Microsoft.AspNetCore.Routing.Microbenchmarks (1)
Matching\MatcherBuilderMultipleEntryBenchmark.cs (1)
168
private sealed class TestEndpointSelectorPolicy : TestMatcherPolicyBase,
IEndpointSelectorPolicy
72 references to IEndpointSelectorPolicy
Microsoft.AspNetCore.Mvc.Core (1)
Routing\DynamicRouteValueTransformer.cs (1)
24
/// <see cref="
IEndpointSelectorPolicy
" /> implementations such as <see cref="HttpMethodMatcherPolicy" />.
Microsoft.AspNetCore.Routing (29)
Matching\AcceptsMatcherPolicy.cs (1)
34
bool
IEndpointSelectorPolicy
.AppliesToEndpoints(IReadOnlyList<Endpoint> endpoints)
Matching\CandidateSet.cs (3)
16
/// and <see cref="
IEndpointSelectorPolicy
"/>.
29
/// and <see cref="
IEndpointSelectorPolicy
"/>.
200
/// <see cref="
IEndpointSelectorPolicy
"/> implementations to disambiguate further.
Matching\DfaMatcher.cs (3)
209
internal (Candidate[] candidates,
IEndpointSelectorPolicy
[] policies) FindCandidateSet(
318
IEndpointSelectorPolicy
[] policies,
323
var
policy = policies[i];
Matching\DfaMatcherBuilder.cs (9)
23
private readonly
IEndpointSelectorPolicy
[] _endpointSelectorPolicies;
575
Array.Empty<
IEndpointSelectorPolicy
>(),
649
List<
IEndpointSelectorPolicy
> endpointSelectorPolicies = null;
654
var
endpointSelectorPolicy = _endpointSelectorPolicies[i];
659
endpointSelectorPolicies = new List<
IEndpointSelectorPolicy
>();
669
endpointSelectorPolicies?.ToArray() ?? Array.Empty<
IEndpointSelectorPolicy
>(),
953
private static (INodeBuilderPolicy[] nodeBuilderPolicies, IEndpointComparerPolicy[] endpointComparerPolicies,
IEndpointSelectorPolicy
[] endpointSelectorPolicies) ExtractPolicies(IEnumerable<MatcherPolicy> policies)
957
var endpointSelectorPolicies = new List<
IEndpointSelectorPolicy
>();
971
if (policy is
IEndpointSelectorPolicy
endpointSelectorPolicy)
Matching\DfaState.cs (2)
12
public readonly
IEndpointSelectorPolicy
[] Policies;
18
IEndpointSelectorPolicy
[] policies,
Matching\HostMatcherPolicy.cs (1)
33
bool
IEndpointSelectorPolicy
.AppliesToEndpoints(IReadOnlyList<Endpoint> endpoints)
Matching\HttpMethodMatcherPolicy.cs (1)
51
bool
IEndpointSelectorPolicy
.AppliesToEndpoints(IReadOnlyList<Endpoint> endpoints)
Matching\IEndpointSelectorPolicy.cs (4)
10
/// in a <see cref="CandidateSet"/>. Implementations of <see cref="
IEndpointSelectorPolicy
"/> must
17
/// Returns a value that indicates whether the <see cref="
IEndpointSelectorPolicy
"/> applies
35
/// Implementations of <see cref="
IEndpointSelectorPolicy
"/> should implement this method
40
/// To signal an error condition, the <see cref="
IEndpointSelectorPolicy
"/> should assign the endpoint by
Matching\MatcherPolicy.cs (4)
17
/// interfaces <see cref="IEndpointComparerPolicy"/>, <see cref="
IEndpointSelectorPolicy
"/>,
38
/// during processing by an <see cref="
IEndpointSelectorPolicy
"/>.
41
/// An implementation of <see cref="INodeBuilderPolicy"/> should also implement <see cref="
IEndpointSelectorPolicy
"/>
42
/// and use its <see cref="
IEndpointSelectorPolicy
"/> implementation when a node contains a dynamic endpoint.
Matching\NegotiationMatcherPolicy.cs (1)
26
bool
IEndpointSelectorPolicy
.AppliesToEndpoints(IReadOnlyList<Endpoint> endpoints) =>
Microsoft.AspNetCore.Routing.Tests (42)
Matching\AcceptsMatcherPolicyTest.cs (8)
91
var
policy = (
IEndpointSelectorPolicy
)CreatePolicy();
109
var
policy = (
IEndpointSelectorPolicy
)CreatePolicy();
128
var
policy = (
IEndpointSelectorPolicy
)CreatePolicy();
147
var
policy = (
IEndpointSelectorPolicy
)CreatePolicy();
Matching\ContentEncodingNegotiationMatcherPolicyTest.cs (6)
21
var
policy = new ContentEncodingNegotiationMatcherPolicy() as
IEndpointSelectorPolicy
;
39
var
policy = new ContentEncodingNegotiationMatcherPolicy() as
IEndpointSelectorPolicy
;
57
var
policy = new ContentEncodingNegotiationMatcherPolicy() as
IEndpointSelectorPolicy
;
Matching\DfaMatcherTest.cs (8)
958
.As<
IEndpointSelectorPolicy
>()
961
.As<
IEndpointSelectorPolicy
>()
994
.As<
IEndpointSelectorPolicy
>()
997
.As<
IEndpointSelectorPolicy
>()
1029
.As<
IEndpointSelectorPolicy
>()
1032
.As<
IEndpointSelectorPolicy
>()
1046
.As<
IEndpointSelectorPolicy
>()
1049
.As<
IEndpointSelectorPolicy
>()
Matching\HostMatcherPolicyTest.cs (10)
109
var
policy = (
IEndpointSelectorPolicy
)CreatePolicy();
127
var
policy = (
IEndpointSelectorPolicy
)CreatePolicy();
146
var
policy = (
IEndpointSelectorPolicy
)CreatePolicy();
165
var
policy = (
IEndpointSelectorPolicy
)CreatePolicy();
186
var
policy = (
IEndpointSelectorPolicy
)CreatePolicy();
Matching\HttpMethodMatcherPolicyTest.cs (10)
89
var
policy = (
IEndpointSelectorPolicy
)CreatePolicy();
107
var
policy = (
IEndpointSelectorPolicy
)CreatePolicy();
126
var
policy = (
IEndpointSelectorPolicy
)CreatePolicy();
145
var
policy = (
IEndpointSelectorPolicy
)CreatePolicy();
159
var
policy = (
IEndpointSelectorPolicy
)CreatePolicy();