From 1340f9c26bacda3fd30793b5a1992bc5d28febc6 Mon Sep 17 00:00:00 2001 From: James Newton-King Date: Wed, 25 Jul 2018 16:03:26 +1200 Subject: [PATCH] Add EndpointSelectorCandidate ctor to not break MVC (#661) --- .../EndpointConstraints/IEndpointConstraint.cs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/Microsoft.AspNetCore.Routing/EndpointConstraints/IEndpointConstraint.cs b/src/Microsoft.AspNetCore.Routing/EndpointConstraints/IEndpointConstraint.cs index 92a1f17388..87fc9407ad 100644 --- a/src/Microsoft.AspNetCore.Routing/EndpointConstraints/IEndpointConstraint.cs +++ b/src/Microsoft.AspNetCore.Routing/EndpointConstraints/IEndpointConstraint.cs @@ -46,6 +46,14 @@ namespace Microsoft.AspNetCore.Routing.EndpointConstraints Constraints = constraints; } + // Temporarily added to not break MVC build + public EndpointSelectorCandidate( + Endpoint endpoint, + IReadOnlyList constraints) + { + throw new NotSupportedException(); + } + public Endpoint Endpoint { get; } public int Score { get; }