Add EndpointSelectorCandidate ctor to not break MVC (#661)

This commit is contained in:
James Newton-King 2018-07-25 16:03:26 +12:00 committed by GitHub
parent fdff66054f
commit 1340f9c26b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 0 deletions

View File

@ -46,6 +46,14 @@ namespace Microsoft.AspNetCore.Routing.EndpointConstraints
Constraints = constraints;
}
// Temporarily added to not break MVC build
public EndpointSelectorCandidate(
Endpoint endpoint,
IReadOnlyList<IEndpointConstraint> constraints)
{
throw new NotSupportedException();
}
public Endpoint Endpoint { get; }
public int Score { get; }