Change name of argument in "WebHostExtensions" (#8411)

This commit is contained in:
Alexey Malinin 2019-03-16 23:16:27 +07:00 committed by Chris Ross
parent adf978a579
commit 2eb0692434
1 changed files with 4 additions and 4 deletions

View File

@ -77,7 +77,7 @@ namespace Microsoft.AspNetCore.Hosting
// Wait for token shutdown if it can be canceled
if (token.CanBeCanceled)
{
await host.RunAsync(token, shutdownMessage: null);
await host.RunAsync(token, startupMessage: null);
return;
}
@ -100,7 +100,7 @@ namespace Microsoft.AspNetCore.Hosting
}
}
private static async Task RunAsync(this IWebHost host, CancellationToken token, string shutdownMessage)
private static async Task RunAsync(this IWebHost host, CancellationToken token, string startupMessage)
{
try
{
@ -124,9 +124,9 @@ namespace Microsoft.AspNetCore.Hosting
}
}
if (!string.IsNullOrEmpty(shutdownMessage))
if (!string.IsNullOrEmpty(startupMessage))
{
Console.WriteLine(shutdownMessage);
Console.WriteLine(startupMessage);
}
}