Reacting to Kestrel extensions

This commit is contained in:
John Luo 2016-03-30 15:51:02 -07:00
parent 4086d70628
commit babd83cf28
6 changed files with 13 additions and 9 deletions

View File

@ -46,7 +46,7 @@ namespace CookieSample
{ {
var host = new WebHostBuilder() var host = new WebHostBuilder()
.UseDefaultHostingConfiguration(args) .UseDefaultHostingConfiguration(args)
.UseServer("Microsoft.AspNetCore.Server.Kestrel") .UseKestrel()
.UseIISPlatformHandlerUrl() .UseIISPlatformHandlerUrl()
.UseStartup<Startup>() .UseStartup<Startup>()
.Build(); .Build();

View File

@ -56,7 +56,7 @@ namespace CookieSessionSample
{ {
var host = new WebHostBuilder() var host = new WebHostBuilder()
.UseDefaultHostingConfiguration(args) .UseDefaultHostingConfiguration(args)
.UseServer("Microsoft.AspNetCore.Server.Kestrel") .UseKestrel()
.UseIISPlatformHandlerUrl() .UseIISPlatformHandlerUrl()
.UseStartup<Startup>() .UseStartup<Startup>()
.Build(); .Build();

View File

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

View File

@ -1,4 +1,4 @@
using System; using System;
using System.Linq; using System.Linq;
using Microsoft.AspNetCore.Authentication.Cookies; using Microsoft.AspNetCore.Authentication.Cookies;
using Microsoft.AspNetCore.Authentication.OpenIdConnect; using Microsoft.AspNetCore.Authentication.OpenIdConnect;
@ -157,7 +157,7 @@ namespace OpenIdConnect.AzureAdSample
{ {
var host = new WebHostBuilder() var host = new WebHostBuilder()
.UseDefaultHostingConfiguration(args) .UseDefaultHostingConfiguration(args)
.UseServer("Microsoft.AspNetCore.Server.Kestrel") .UseKestrel()
.UseIISPlatformHandlerUrl() .UseIISPlatformHandlerUrl()
.UseStartup<Startup>() .UseStartup<Startup>()
.Build(); .Build();
@ -166,3 +166,4 @@ namespace OpenIdConnect.AzureAdSample
} }
} }
} }

View File

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

View File

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