From 9b9bf73ece95bc7a02192d31ddb7ddd5d0eae9cd Mon Sep 17 00:00:00 2001 From: John Luo Date: Thu, 14 Apr 2016 11:43:31 -0700 Subject: [PATCH] Use UseServer() instead of UseKestrel() to allow override in tests --- src/MusicStore/Program.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/MusicStore/Program.cs b/src/MusicStore/Program.cs index d63f395..3aa4520 100644 --- a/src/MusicStore/Program.cs +++ b/src/MusicStore/Program.cs @@ -7,9 +7,9 @@ namespace MusicStore public static void Main(string[] args) { var host = new WebHostBuilder() - // We set the server before default args so that command line arguments can override it. + // We set the server by name before default args so that command line arguments can override it. // This is used to allow deployers to choose the server for testing. - .UseKestrel() + .UseServer("Microsoft.AspNetCore.Server.Kestrel") .UseDefaultHostingConfiguration(args) .UseIISIntegration() .UseStartup("MusicStore")