14 types derived from MatcherPolicy
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)
185
private abstract class TestMatcherPolicyBase :
MatcherPolicy
Microsoft.AspNetCore.Routing.Tests (5)
MatcherPolicyTest.cs (1)
80
private class TestMatcherPolicy :
MatcherPolicy
Matching\CandidateSetTest.cs (1)
396
private class TestMetadataMatcherPolicy :
MatcherPolicy
, IEndpointComparerPolicy
Matching\DfaMatcherBuilderTest.cs (3)
3583
private class TestMetadata1MatcherPolicy :
MatcherPolicy
, IEndpointComparerPolicy, INodeBuilderPolicy
3625
private class TestMetadata2MatcherPolicy :
MatcherPolicy
, IEndpointComparerPolicy, INodeBuilderPolicy
3653
private class TestNonRoutePatternMatcherPolicy :
MatcherPolicy
, IEndpointComparerPolicy, INodeBuilderPolicy
49 references to MatcherPolicy
Microsoft.AspNetCore.Mvc.Core (2)
DependencyInjection\MvcCoreServiceCollectionExtensions.cs (2)
167
services.TryAddEnumerable(ServiceDescriptor.Singleton<
MatcherPolicy
, ActionConstraintMatcherPolicy>());
263
services.TryAddEnumerable(ServiceDescriptor.Singleton<
MatcherPolicy
, DynamicControllerEndpointMatcherPolicy>());
Microsoft.AspNetCore.Mvc.Core.Test (1)
DependencyInjection\MvcCoreServiceCollectionExtensionsTest.cs (1)
320
typeof(
MatcherPolicy
),
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation (1)
DependencyInjection\RazorRuntimeCompilationMvcCoreBuilderExtensions.cs (1)
87
services.TryAddEnumerable(ServiceDescriptor.Singleton<
MatcherPolicy
, PageLoaderMatcherPolicy>());
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation.Test (1)
DependencyInjection\RazorRuntimeCompilationMvcCoreBuilderExtensionsTest.cs (1)
43
serviceDescriptor = Assert.Single(services, service => service.ServiceType == typeof(
MatcherPolicy
));
Microsoft.AspNetCore.Mvc.RazorPages (2)
DependencyInjection\MvcRazorPagesMvcCoreBuilderExtensions.cs (2)
89
services.TryAddEnumerable(ServiceDescriptor.Singleton<
MatcherPolicy
, DynamicPageEndpointMatcherPolicy>());
110
services.TryAddEnumerable(ServiceDescriptor.Singleton<
MatcherPolicy
, DynamicPageEndpointMatcherPolicy>());
Microsoft.AspNetCore.Routing (21)
DependencyInjection\RoutingServiceCollectionExtensions.cs (4)
105
services.TryAddEnumerable(ServiceDescriptor.Singleton<
MatcherPolicy
, HttpMethodMatcherPolicy>());
106
services.TryAddEnumerable(ServiceDescriptor.Singleton<
MatcherPolicy
, HostMatcherPolicy>());
107
services.TryAddEnumerable(ServiceDescriptor.Singleton<
MatcherPolicy
, AcceptsMatcherPolicy>());
108
services.TryAddEnumerable(ServiceDescriptor.Singleton<
MatcherPolicy
, ContentEncodingNegotiationMatcherPolicy>());
IDynamicEndpointMetadata.cs (1)
16
/// <see cref="
MatcherPolicy
"/> implementations that an <see cref="Endpoint"/> has dynamic behavior
Matching\DfaMatcherBuilder.cs (3)
40
IEnumerable<
MatcherPolicy
> policies)
953
private static (INodeBuilderPolicy[] nodeBuilderPolicies, IEndpointComparerPolicy[] endpointComparerPolicies, IEndpointSelectorPolicy[] endpointSelectorPolicies) ExtractPolicies(IEnumerable<
MatcherPolicy
> policies)
959
foreach (
var
policy in policies)
Matching\EndpointMetadataComparer.cs (1)
37
_comparers = _services.GetServices<
MatcherPolicy
>()
Matching\HostMatcherPolicy.cs (1)
11
/// A <see cref="
MatcherPolicy
"/> that implements filtering and selection by
Matching\HttpMethodMatcherPolicy.cs (1)
13
/// An <see cref="
MatcherPolicy
"/> that implements filtering and selection by
Matching\IEndpointComparerPolicy.cs (3)
9
/// A <see cref="
MatcherPolicy
"/> interface that can be implemented to sort
11
/// inherit from <see cref="
MatcherPolicy
"/> and should be registered in
12
/// the dependency injection container as singleton services of type <see cref="
MatcherPolicy
"/>.
Matching\IEndpointSelectorPolicy.cs (3)
9
/// A <see cref="
MatcherPolicy
"/> interface that can implemented to filter endpoints
11
/// inherit from <see cref="
MatcherPolicy
"/> and should be registered in
12
/// the dependency injection container as singleton services of type <see cref="
MatcherPolicy
"/>.
Matching\MatcherPolicy.cs (4)
11
/// of <see cref="
MatcherPolicy
"/> and related interfaces must be registered
13
/// <see cref="
MatcherPolicy
"/>.
16
/// <see cref="
MatcherPolicy
"/> implementations can implement the following
23
/// Gets a value that determines the order the <see cref="
MatcherPolicy
"/> should
Microsoft.AspNetCore.Routing.Microbenchmarks (6)
Matching\MatcherBuilderMultipleEntryBenchmark.cs (6)
17
private List<
MatcherPolicy
> _policies;
41
_policies = new List<
MatcherPolicy
>()
84
private static
MatcherPolicy
CreateNodeBuilderPolicy(int order)
88
private static
MatcherPolicy
CreateEndpointComparerPolicy(int order)
93
private static
MatcherPolicy
CreateEndpointSelectorPolicy(int order)
98
private static
MatcherPolicy
CreateUberPolicy(int order)
Microsoft.AspNetCore.Routing.Tests (15)
MatcherPolicyTest.cs (1)
86
return
MatcherPolicy
.ContainsDynamicEndpoints(endpoints);
Matching\CandidateSetTest.cs (6)
124
services.Setup(s => s.GetService(typeof(IEnumerable<
MatcherPolicy
>))).Returns(new[] { new TestMetadataMatcherPolicy(), });
167
services.Setup(s => s.GetService(typeof(IEnumerable<
MatcherPolicy
>))).Returns(new[] { new TestMetadataMatcherPolicy(), });
217
services.Setup(s => s.GetService(typeof(IEnumerable<
MatcherPolicy
>))).Returns(new[] { new TestMetadataMatcherPolicy(), });
274
services.Setup(s => s.GetService(typeof(IEnumerable<
MatcherPolicy
>))).Returns(new[] { new TestMetadataMatcherPolicy(), });
317
services.Setup(s => s.GetService(typeof(IEnumerable<
MatcherPolicy
>))).Returns(new[] { new TestMetadataMatcherPolicy(), });
382
private static DfaMatcherBuilder CreateDfaMatcherBuilder(params
MatcherPolicy
[] policies)
Matching\DfaMatcherBuilderTest.cs (2)
2909
var policies = new
MatcherPolicy
[]
3499
private static DfaMatcherBuilder CreateDfaMatcherBuilder(params
MatcherPolicy
[] policies)
Matching\DfaMatcherTest.cs (6)
25
MatcherPolicy
[] policies = null,
41
serviceCollection.AddSingleton<
MatcherPolicy
>(policies[i]);
956
var policy = new Mock<
MatcherPolicy
>();
992
var policy = new Mock<
MatcherPolicy
>();
1027
var policy1 = new Mock<
MatcherPolicy
>();
1041
var policy2 = new Mock<
MatcherPolicy
>();