Use UseServer() instead of UseKestrel() to allow override in tests
This commit is contained in:
parent
ff46985cbd
commit
9b9bf73ece
|
|
@ -7,9 +7,9 @@ namespace MusicStore
|
||||||
public static void Main(string[] args)
|
public static void Main(string[] args)
|
||||||
{
|
{
|
||||||
var host = new WebHostBuilder()
|
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.
|
// This is used to allow deployers to choose the server for testing.
|
||||||
.UseKestrel()
|
.UseServer("Microsoft.AspNetCore.Server.Kestrel")
|
||||||
.UseDefaultHostingConfiguration(args)
|
.UseDefaultHostingConfiguration(args)
|
||||||
.UseIISIntegration()
|
.UseIISIntegration()
|
||||||
.UseStartup("MusicStore")
|
.UseStartup("MusicStore")
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue