From 2eb069243402603794b72995142ad2d53f21c824 Mon Sep 17 00:00:00 2001 From: Alexey Malinin Date: Sat, 16 Mar 2019 23:16:27 +0700 Subject: [PATCH] Change name of argument in "WebHostExtensions" (#8411) --- src/Hosting/Hosting/src/WebHostExtensions.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Hosting/Hosting/src/WebHostExtensions.cs b/src/Hosting/Hosting/src/WebHostExtensions.cs index 2af27f880e..53923f85f6 100644 --- a/src/Hosting/Hosting/src/WebHostExtensions.cs +++ b/src/Hosting/Hosting/src/WebHostExtensions.cs @@ -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); } }