1 implementation of IHttpMethodMetadata
Microsoft.AspNetCore.Routing (1)
HttpMethodMetadata.cs (1)
15public sealed class HttpMethodMetadata : IHttpMethodMetadata
14 references to IHttpMethodMetadata
Microsoft.AspNetCore.Diagnostics (1)
DeveloperExceptionPage\DeveloperExceptionPageMiddlewareImpl.cs (1)
352var httpMethods = endpoint.Metadata.GetMetadata<IHttpMethodMetadata>()?.HttpMethods;
Microsoft.AspNetCore.Mvc.ApiExplorer (1)
EndpointMetadataApiDescriptionProvider.cs (1)
62routeEndpoint.Metadata.GetMetadata<IHttpMethodMetadata>() is { } httpMethodMetadata &&
Microsoft.AspNetCore.Routing (12)
EndpointDataSource.cs (2)
123var httpMethodMetadata = routeEndpoint.Metadata.GetMetadata<IHttpMethodMetadata>();
Matching\HttpMethodMatcherPolicy.cs (8)
63if (endpoints[i].Metadata.GetMetadata<IHttpMethodMetadata>()?.HttpMethods.Count > 0) 99var metadata = candidates[i].Endpoint?.Metadata.GetMetadata<IHttpMethodMetadata>(); 300var metadata = e.Metadata.GetMetadata<IHttpMethodMetadata>(); 430private sealed class HttpMethodMetadataEndpointComparer : EndpointMetadataComparer<IHttpMethodMetadata> 432protected override int CompareMetadata(IHttpMethodMetadata? x, IHttpMethodMetadata? y)
RouteEndpointBuilder.cs (2)
70IHttpMethodMetadata? httpMethodMetadata = null; 80if (metadata[i] is IHttpMethodMetadata methodMetadata)