diff --git a/src/Microsoft.AspNetCore.Routing/Matchers/MatcherEndpoint.cs b/src/Microsoft.AspNetCore.Routing/Matchers/MatcherEndpoint.cs index 4d7fa50e0e..591c98bac4 100644 --- a/src/Microsoft.AspNetCore.Routing/Matchers/MatcherEndpoint.cs +++ b/src/Microsoft.AspNetCore.Routing/Matchers/MatcherEndpoint.cs @@ -16,6 +16,18 @@ namespace Microsoft.AspNetCore.Routing.Matchers return (context) => Task.CompletedTask; }; + public MatcherEndpoint( + Func invoker, + string template, + RouteValueDictionary defaults, + RouteValueDictionary requiredValues, + int order, + EndpointMetadataCollection metadata, + string displayName) + : this(invoker, template, defaults, requiredValues, new List(), order, metadata, displayName) + { + } + public MatcherEndpoint( Func invoker, string template,