10 references to AnyMethod
Microsoft.AspNetCore.Routing (5)
Matching\HttpMethodMatcherPolicy.cs (5)
186httpMethods = new[] { AnyMethod, }; 212if (!string.Equals(AnyMethod, httpMethod, StringComparison.OrdinalIgnoreCase)) 281if (!edges.TryGetValue(new EdgeKey(AnyMethod, false), out _)) 286edges[new EdgeKey(AnyMethod, false)] = matches; 367if (string.Equals(httpMethod, AnyMethod, StringComparison.OrdinalIgnoreCase))
Microsoft.AspNetCore.Routing.Tests (5)
Matching\HttpMethodMatcherPolicyTest.cs (5)
201Assert.Equal(new EdgeKey(AnyMethod, isCorsPreflightRequest: false), e.State); 246Assert.Equal(new EdgeKey(AnyMethod, isCorsPreflightRequest: false), e.State); 251Assert.Equal(new EdgeKey(AnyMethod, isCorsPreflightRequest: true), e.State); 309Assert.Equal(new EdgeKey(AnyMethod, isCorsPreflightRequest: false), e.State); 353Assert.Equal(new EdgeKey(AnyMethod, isCorsPreflightRequest: false), e.State);