1 write to HttpMethod
Microsoft.AspNetCore.Http.RequestDelegateGenerator (1)
StaticRouteHandlerModel\Endpoint.cs (1)
26
HttpMethod
= GetHttpMethod(operation);
12 references to HttpMethod
Microsoft.AspNetCore.Http.RequestDelegateGenerator (12)
RequestDelegateGenerator.cs (4)
67
codeWriter.WriteLine($"internal static RouteHandlerBuilder {endpoint.
HttpMethod
}{endpointWithLocations.Index}(");
71
if (endpoint.
HttpMethod
!= "MapFallback" || endpoint.Operation.Arguments.Length != 2)
76
if (endpoint.
HttpMethod
== "MapMethods")
141
if (endpoint.
HttpMethod
!= "MapFallback" && endpoint.Operation.Arguments.Length != 2)
StaticRouteHandlerModel\Endpoint.cs (3)
119
!a.
HttpMethod
.Equals(b.
HttpMethod
, StringComparison.Ordinal) ||
140
hashCode.Add(endpoint.
HttpMethod
);
StaticRouteHandlerModel\EndpointHttpMethodComparer.cs (3)
14
public bool Equals(Endpoint x, Endpoint y) => OrdinalComparer.Equals(x.
HttpMethod
, y.
HttpMethod
);
16
public int GetHashCode(Endpoint obj) => OrdinalComparer.GetHashCode(obj.
HttpMethod
);
StaticRouteHandlerModel\StaticRouteHandlerModel.Emitter.cs (2)
46
(var verbSymbol, endpoint.EmitterContext.HttpMethod) = endpoint.
HttpMethod
switch
56
_ => throw new ArgumentException($"Received unexpected HTTP method: {endpoint.
HttpMethod
}")