Minor argument check fixes

Fixed `nameof()` reference to be consistent with arg being checked. Added null check for port to be consistent with earlier overload.
This commit is contained in:
Travis Illig 2019-01-14 11:19:54 -08:00 committed by Ryan Nowak
parent 5b8d93c9c6
commit f072523780
1 changed files with 5 additions and 0 deletions

View File

@ -200,6 +200,11 @@ namespace Microsoft.AspNetCore.Builder
}
if (path == null)
{
throw new ArgumentNullException(nameof(path));
}
if (port == null)
{
throw new ArgumentNullException(nameof(port));
}