Use UseServer() instead of UseKestrel() to allow override in tests

This commit is contained in:
John Luo 2016-04-14 11:43:31 -07:00
Родитель ff46985cbd
Коммит 9b9bf73ece
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -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")