2 instantiations of HttpMethodMatcherPolicy
Microsoft.AspNetCore.Routing.Microbenchmarks (1)
Matching\HttpMethodMatcherPolicyBenchmark.cs (1)
12private HttpMethodMatcherPolicy _jumpTableBuilder = new();
Microsoft.AspNetCore.Routing.Tests (1)
Matching\HttpMethodMatcherPolicyTest.cs (1)
411return new HttpMethodMatcherPolicy();
17 references to HttpMethodMatcherPolicy
Microsoft.AspNetCore.Mvc.Core (1)
Routing\DynamicRouteValueTransformer.cs (1)
24/// <see cref="IEndpointSelectorPolicy" /> implementations such as <see cref="HttpMethodMatcherPolicy" />.
Microsoft.AspNetCore.Routing (4)
DependencyInjection\RoutingServiceCollectionExtensions.cs (1)
105services.TryAddEnumerable(ServiceDescriptor.Singleton<MatcherPolicy, HttpMethodMatcherPolicy>());
Matching\HttpMethodDictionaryPolicyJumpTable.cs (1)
24if (_corsHttpMethodDestinations != null && HttpMethodMatcherPolicy.IsCorsPreflightRequest(httpContext, httpMethod, out var accessControlRequestMethod))
Matching\HttpMethodSingleEntryPolicyJumpTable.cs (1)
37if (_supportsCorsPreflight && HttpMethodMatcherPolicy.IsCorsPreflightRequest(httpContext, httpMethod, out var accessControlRequestMethod))
Matching\IEndpointComparerPolicy.cs (1)
21/// As an example, the implementation of <see cref="HttpMethodMatcherPolicy"/> implements
Microsoft.AspNetCore.Routing.Microbenchmarks (2)
Matching\HttpMethodMatcherPolicyBenchmark.cs (2)
12private HttpMethodMatcherPolicy _jumpTableBuilder = new(); 23_edges.Add(new PolicyJumpTableEdge(new HttpMethodMatcherPolicy.EdgeKey(TestHttpMethods[i], false), i + 1));
Microsoft.AspNetCore.Routing.Tests (10)
Matching\HttpMethodMatcherPolicyIntegrationTestBase.cs (4)
8using static Microsoft.AspNetCore.Routing.Matching.HttpMethodMatcherPolicy; 79Assert.Same(HttpMethodMatcherPolicy.Http405EndpointDisplayName, httpContext.GetEndpoint().DisplayName); 199Assert.Same(HttpMethodMatcherPolicy.Http405EndpointDisplayName, httpContext.GetEndpoint().DisplayName); 309Assert.Same(HttpMethodMatcherPolicy.Http405EndpointDisplayName, httpContext.GetEndpoint().DisplayName);
Matching\HttpMethodMatcherPolicyTest.cs (6)
6using static Microsoft.AspNetCore.Routing.Matching.HttpMethodMatcherPolicy; 191var policy = CreatePolicy(); 236var policy = CreatePolicy(); 299var policy = CreatePolicy(); 343var policy = CreatePolicy(); 409private static HttpMethodMatcherPolicy CreatePolicy()