14 types derived from MatcherPolicy
Microsoft.AspNetCore.Mvc.Core (2)
Routing\ActionConstraintMatcherPolicy.cs (1)
15internal sealed class ActionConstraintMatcherPolicy : MatcherPolicy, IEndpointSelectorPolicy
Routing\DynamicControllerEndpointMatcherPolicy.cs (1)
14internal sealed class DynamicControllerEndpointMatcherPolicy : MatcherPolicy, IEndpointSelectorPolicy
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation (1)
PageLoaderMatcherPolicy.cs (1)
11internal sealed class PageLoaderMatcherPolicy : MatcherPolicy, IEndpointSelectorPolicy
Microsoft.AspNetCore.Mvc.RazorPages (1)
Infrastructure\DynamicPageEndpointMatcherPolicy.cs (1)
14internal sealed class DynamicPageEndpointMatcherPolicy : MatcherPolicy, IEndpointSelectorPolicy
Microsoft.AspNetCore.Routing (4)
Matching\AcceptsMatcherPolicy.cs (1)
11internal sealed class AcceptsMatcherPolicy : MatcherPolicy, IEndpointComparerPolicy, INodeBuilderPolicy, IEndpointSelectorPolicy
Matching\HostMatcherPolicy.cs (1)
14public sealed class HostMatcherPolicy : MatcherPolicy, IEndpointComparerPolicy, INodeBuilderPolicy, IEndpointSelectorPolicy
Matching\HttpMethodMatcherPolicy.cs (1)
16public sealed class HttpMethodMatcherPolicy : MatcherPolicy, IEndpointComparerPolicy, INodeBuilderPolicy, IEndpointSelectorPolicy
Matching\NegotiationMatcherPolicy.cs (1)
10internal abstract class NegotiationMatcherPolicy<TNegotiateMetadata> : MatcherPolicy, IEndpointSelectorPolicy, INodeBuilderPolicy, IEndpointComparerPolicy
Microsoft.AspNetCore.Routing.Microbenchmarks (1)
Matching\MatcherBuilderMultipleEntryBenchmark.cs (1)
185private abstract class TestMatcherPolicyBase : MatcherPolicy
Microsoft.AspNetCore.Routing.Tests (5)
MatcherPolicyTest.cs (1)
80private class TestMatcherPolicy : MatcherPolicy
Matching\CandidateSetTest.cs (1)
396private class TestMetadataMatcherPolicy : MatcherPolicy, IEndpointComparerPolicy
Matching\DfaMatcherBuilderTest.cs (3)
3583private class TestMetadata1MatcherPolicy : MatcherPolicy, IEndpointComparerPolicy, INodeBuilderPolicy 3625private class TestMetadata2MatcherPolicy : MatcherPolicy, IEndpointComparerPolicy, INodeBuilderPolicy 3653private class TestNonRoutePatternMatcherPolicy : MatcherPolicy, IEndpointComparerPolicy, INodeBuilderPolicy
49 references to MatcherPolicy
Microsoft.AspNetCore.Mvc.Core (2)
DependencyInjection\MvcCoreServiceCollectionExtensions.cs (2)
167services.TryAddEnumerable(ServiceDescriptor.Singleton<MatcherPolicy, ActionConstraintMatcherPolicy>()); 263services.TryAddEnumerable(ServiceDescriptor.Singleton<MatcherPolicy, DynamicControllerEndpointMatcherPolicy>());
Microsoft.AspNetCore.Mvc.Core.Test (1)
DependencyInjection\MvcCoreServiceCollectionExtensionsTest.cs (1)
320typeof(MatcherPolicy),
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation (1)
DependencyInjection\RazorRuntimeCompilationMvcCoreBuilderExtensions.cs (1)
87services.TryAddEnumerable(ServiceDescriptor.Singleton<MatcherPolicy, PageLoaderMatcherPolicy>());
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation.Test (1)
DependencyInjection\RazorRuntimeCompilationMvcCoreBuilderExtensionsTest.cs (1)
43serviceDescriptor = Assert.Single(services, service => service.ServiceType == typeof(MatcherPolicy));
Microsoft.AspNetCore.Mvc.RazorPages (2)
DependencyInjection\MvcRazorPagesMvcCoreBuilderExtensions.cs (2)
89services.TryAddEnumerable(ServiceDescriptor.Singleton<MatcherPolicy, DynamicPageEndpointMatcherPolicy>()); 110services.TryAddEnumerable(ServiceDescriptor.Singleton<MatcherPolicy, DynamicPageEndpointMatcherPolicy>());
Microsoft.AspNetCore.Routing (21)
DependencyInjection\RoutingServiceCollectionExtensions.cs (4)
105services.TryAddEnumerable(ServiceDescriptor.Singleton<MatcherPolicy, HttpMethodMatcherPolicy>()); 106services.TryAddEnumerable(ServiceDescriptor.Singleton<MatcherPolicy, HostMatcherPolicy>()); 107services.TryAddEnumerable(ServiceDescriptor.Singleton<MatcherPolicy, AcceptsMatcherPolicy>()); 108services.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)
40IEnumerable<MatcherPolicy> policies) 953private static (INodeBuilderPolicy[] nodeBuilderPolicies, IEndpointComparerPolicy[] endpointComparerPolicies, IEndpointSelectorPolicy[] endpointSelectorPolicies) ExtractPolicies(IEnumerable<MatcherPolicy> policies) 959foreach (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)
17private List<MatcherPolicy> _policies; 41_policies = new List<MatcherPolicy>() 84private static MatcherPolicy CreateNodeBuilderPolicy(int order) 88private static MatcherPolicy CreateEndpointComparerPolicy(int order) 93private static MatcherPolicy CreateEndpointSelectorPolicy(int order) 98private static MatcherPolicy CreateUberPolicy(int order)
Microsoft.AspNetCore.Routing.Tests (15)
MatcherPolicyTest.cs (1)
86return MatcherPolicy.ContainsDynamicEndpoints(endpoints);
Matching\CandidateSetTest.cs (6)
124services.Setup(s => s.GetService(typeof(IEnumerable<MatcherPolicy>))).Returns(new[] { new TestMetadataMatcherPolicy(), }); 167services.Setup(s => s.GetService(typeof(IEnumerable<MatcherPolicy>))).Returns(new[] { new TestMetadataMatcherPolicy(), }); 217services.Setup(s => s.GetService(typeof(IEnumerable<MatcherPolicy>))).Returns(new[] { new TestMetadataMatcherPolicy(), }); 274services.Setup(s => s.GetService(typeof(IEnumerable<MatcherPolicy>))).Returns(new[] { new TestMetadataMatcherPolicy(), }); 317services.Setup(s => s.GetService(typeof(IEnumerable<MatcherPolicy>))).Returns(new[] { new TestMetadataMatcherPolicy(), }); 382private static DfaMatcherBuilder CreateDfaMatcherBuilder(params MatcherPolicy[] policies)
Matching\DfaMatcherBuilderTest.cs (2)
2909var policies = new MatcherPolicy[] 3499private static DfaMatcherBuilder CreateDfaMatcherBuilder(params MatcherPolicy[] policies)
Matching\DfaMatcherTest.cs (6)
25MatcherPolicy[] policies = null, 41serviceCollection.AddSingleton<MatcherPolicy>(policies[i]); 956var policy = new Mock<MatcherPolicy>(); 992var policy = new Mock<MatcherPolicy>(); 1027var policy1 = new Mock<MatcherPolicy>(); 1041var policy2 = new Mock<MatcherPolicy>();