diff --git a/benchmarks/Microsoft.AspNetCore.Routing.Performance/EndpointRoutingBenchmarkBase.cs b/benchmarks/Microsoft.AspNetCore.Routing.Performance/EndpointRoutingBenchmarkBase.cs index ece73b75a4..9e3f050d8d 100644 --- a/benchmarks/Microsoft.AspNetCore.Routing.Performance/EndpointRoutingBenchmarkBase.cs +++ b/benchmarks/Microsoft.AspNetCore.Routing.Performance/EndpointRoutingBenchmarkBase.cs @@ -97,6 +97,14 @@ namespace Microsoft.AspNetCore.Routing } } + protected RouteEndpoint CreateEndpoint(string template, string httpMethod) + { + return CreateEndpoint(template, metadata: new object[] + { + new HttpMethodMetadata(new string[]{ httpMethod, }), + }); + } + protected RouteEndpoint CreateEndpoint( string template, object defaults = null,