Reacting to Kestrel extensions

This commit is contained in:
John Luo 2016-03-30 16:36:28 -07:00
parent f1a02433be
commit bb1b2695bf
8 changed files with 16 additions and 10 deletions

View File

@ -30,7 +30,7 @@ namespace DatabaseErrorPageSample
{
var host = new WebHostBuilder()
.UseDefaultHostingConfiguration(args)
.UseServer("Microsoft.AspNetCore.Server.Kestrel")
.UseKestrel()
.UseIISPlatformHandlerUrl()
.UseStartup<Startup>()
.Build();
@ -55,3 +55,4 @@ namespace DatabaseErrorPageSample
public string Url { get; set; }
}
}

View File

@ -23,7 +23,7 @@ namespace DeveloperExceptionPageSample
{
var host = new WebHostBuilder()
.UseDefaultHostingConfiguration(args)
.UseServer("Microsoft.AspNetCore.Server.Kestrel")
.UseKestrel()
.UseIISPlatformHandlerUrl()
.UseStartup<Startup>()
.Build();
@ -31,4 +31,4 @@ namespace DeveloperExceptionPageSample
host.Run();
}
}
}
}

View File

@ -31,7 +31,7 @@ namespace ElmPageSample
{
var host = new WebHostBuilder()
.UseDefaultHostingConfiguration(args)
.UseServer("Microsoft.AspNetCore.Server.Kestrel")
.UseKestrel()
.UseIISPlatformHandlerUrl()
.UseStartup<Startup>()
.Build();
@ -40,3 +40,4 @@ namespace ElmPageSample
}
}
}

View File

@ -60,7 +60,7 @@ namespace ExceptionHandlerSample
{
var host = new WebHostBuilder()
.UseDefaultHostingConfiguration(args)
.UseServer("Microsoft.AspNetCore.Server.Kestrel")
.UseKestrel()
.UseIISPlatformHandlerUrl()
.UseStartup<Startup>()
.Build();
@ -69,3 +69,4 @@ namespace ExceptionHandlerSample
}
}
}

View File

@ -87,7 +87,7 @@ namespace MiddlewareAnaysisSample
{
var host = new WebHostBuilder()
.UseDefaultHostingConfiguration(args)
.UseServer("Microsoft.AspNetCore.Server.Kestrel")
.UseKestrel()
.UseIISPlatformHandlerUrl()
.UseStartup<Startup>()
.Build();
@ -117,3 +117,4 @@ namespace MiddlewareAnaysisSample
}
}
}

View File

@ -23,7 +23,7 @@ namespace RuntimeInfoPageSample
{
var host = new WebHostBuilder()
.UseDefaultHostingConfiguration(args)
.UseServer("Microsoft.AspNetCore.Server.Kestrel")
.UseKestrel()
.UseIISPlatformHandlerUrl()
.UseStartup<Startup>()
.Build();
@ -32,3 +32,4 @@ namespace RuntimeInfoPageSample
}
}
}

View File

@ -106,7 +106,7 @@ namespace StatusCodePagesSample
{
var host = new WebHostBuilder()
.UseDefaultHostingConfiguration(args)
.UseServer("Microsoft.AspNetCore.Server.Kestrel")
.UseKestrel()
.UseIISPlatformHandlerUrl()
.UseStartup<Startup>()
.Build();
@ -114,4 +114,4 @@ namespace StatusCodePagesSample
host.Run();
}
}
}
}

View File

@ -14,7 +14,7 @@ namespace WelcomePageSample
{
var host = new WebHostBuilder()
.UseDefaultHostingConfiguration(args)
.UseServer("Microsoft.AspNetCore.Server.Kestrel")
.UseKestrel()
.UseIISPlatformHandlerUrl()
.UseStartup<Startup>()
.Build();
@ -23,3 +23,4 @@ namespace WelcomePageSample
}
}
}