fix silly constructor

This commit is contained in:
Ryan Nowak 2018-07-24 21:54:24 -07:00
parent 1340f9c26b
commit 19f24cad16
1 changed files with 9 additions and 1 deletions

View File

@ -51,7 +51,15 @@ namespace Microsoft.AspNetCore.Routing.EndpointConstraints
Endpoint endpoint,
IReadOnlyList<IEndpointConstraint> constraints)
{
throw new NotSupportedException();
if (endpoint == null)
{
throw new ArgumentNullException(nameof(endpoint));
}
Endpoint = endpoint;
Score = 0;
Values = null;
Constraints = constraints;
}
public Endpoint Endpoint { get; }