Change name of argument in "WebHostExtensions" (#8411)
This commit is contained in:
parent
adf978a579
commit
2eb0692434
|
|
@ -77,7 +77,7 @@ namespace Microsoft.AspNetCore.Hosting
|
||||||
// Wait for token shutdown if it can be canceled
|
// Wait for token shutdown if it can be canceled
|
||||||
if (token.CanBeCanceled)
|
if (token.CanBeCanceled)
|
||||||
{
|
{
|
||||||
await host.RunAsync(token, shutdownMessage: null);
|
await host.RunAsync(token, startupMessage: null);
|
||||||
return;
|
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
|
try
|
||||||
{
|
{
|
||||||
|
|
@ -124,9 +124,9 @@ namespace Microsoft.AspNetCore.Hosting
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!string.IsNullOrEmpty(shutdownMessage))
|
if (!string.IsNullOrEmpty(startupMessage))
|
||||||
{
|
{
|
||||||
Console.WriteLine(shutdownMessage);
|
Console.WriteLine(startupMessage);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue