fix silly constructor
This commit is contained in:
parent
1340f9c26b
commit
19f24cad16
|
|
@ -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; }
|
||||
|
|
|
|||
Loading…
Reference in New Issue