30 references to EdgeKey
Microsoft.AspNetCore.Routing (6)
Matching\HttpMethodMatcherPolicy.cs (6)
194var key = new EdgeKey(httpMethod, acceptCorsPreFlight); 204key = new EdgeKey(httpMethod, false); 249var key = new EdgeKey(httpMethod, acceptCorsPreFlight); 257key = new EdgeKey(httpMethod, false); 281if (!edges.TryGetValue(new EdgeKey(AnyMethod, false), out _)) 286edges[new EdgeKey(AnyMethod, false)] = matches;
Microsoft.AspNetCore.Routing.Microbenchmarks (1)
Matching\HttpMethodMatcherPolicyBenchmark.cs (1)
23_edges.Add(new PolicyJumpTableEdge(new HttpMethodMatcherPolicy.EdgeKey(TestHttpMethods[i], false), i + 1));
Microsoft.AspNetCore.Routing.Tests (23)
Matching\HttpMethodMatcherPolicyTest.cs (23)
201Assert.Equal(new EdgeKey(AnyMethod, isCorsPreflightRequest: false), e.State); 206Assert.Equal(new EdgeKey("GET", isCorsPreflightRequest: false), e.State); 211Assert.Equal(new EdgeKey("POST", isCorsPreflightRequest: false), e.State); 216Assert.Equal(new EdgeKey("PUT", isCorsPreflightRequest: false), e.State); 246Assert.Equal(new EdgeKey(AnyMethod, isCorsPreflightRequest: false), e.State); 251Assert.Equal(new EdgeKey(AnyMethod, isCorsPreflightRequest: true), e.State); 256Assert.Equal(new EdgeKey("GET", isCorsPreflightRequest: false), e.State); 261Assert.Equal(new EdgeKey("GET", isCorsPreflightRequest: true), e.State); 266Assert.Equal(new EdgeKey("POST", isCorsPreflightRequest: false), e.State); 271Assert.Equal(new EdgeKey("POST", isCorsPreflightRequest: true), e.State); 276Assert.Equal(new EdgeKey("PUT", isCorsPreflightRequest: false), e.State); 281Assert.Equal(new EdgeKey("PUT", isCorsPreflightRequest: true), e.State); 309Assert.Equal(new EdgeKey(AnyMethod, isCorsPreflightRequest: false), e.State); 314Assert.Equal(new EdgeKey("GET", isCorsPreflightRequest: false), e.State); 319Assert.Equal(new EdgeKey("POST", isCorsPreflightRequest: false), e.State); 324Assert.Equal(new EdgeKey("PUT", isCorsPreflightRequest: false), e.State); 353Assert.Equal(new EdgeKey(AnyMethod, isCorsPreflightRequest: false), e.State); 358Assert.Equal(new EdgeKey("GET", isCorsPreflightRequest: false), e.State); 363Assert.Equal(new EdgeKey("GET", isCorsPreflightRequest: true), e.State); 368Assert.Equal(new EdgeKey("POST", isCorsPreflightRequest: false), e.State); 373Assert.Equal(new EdgeKey("POST", isCorsPreflightRequest: true), e.State); 378Assert.Equal(new EdgeKey("PUT", isCorsPreflightRequest: false), e.State); 383Assert.Equal(new EdgeKey("PUT", isCorsPreflightRequest: true), e.State);