From 1b4ccd0ddfc97f57818fdaee0989518760e4d0c0 Mon Sep 17 00:00:00 2001 From: Hisham Bin Ateya Date: Thu, 4 Feb 2016 13:31:57 +0300 Subject: [PATCH] Add 'UseServer' --- samples/CookieSample/Startup.cs | 1 + samples/CookieSample/hosting.json | 3 --- samples/CookieSessionSample/Startup.cs | 1 + samples/CookieSessionSample/hosting.json | 3 --- samples/JwtBearerSample/Startup.cs | 1 + samples/JwtBearerSample/hosting.json | 3 --- samples/OpenIdConnectSample/Startup.cs | 1 + samples/OpenIdConnectSample/hosting.json | 3 --- samples/SocialSample/Startup.cs | 1 + samples/SocialSample/hosting.json | 3 --- 10 files changed, 5 insertions(+), 15 deletions(-) delete mode 100644 samples/CookieSample/hosting.json delete mode 100644 samples/CookieSessionSample/hosting.json delete mode 100644 samples/JwtBearerSample/hosting.json delete mode 100644 samples/OpenIdConnectSample/hosting.json delete mode 100644 samples/SocialSample/hosting.json diff --git a/samples/CookieSample/Startup.cs b/samples/CookieSample/Startup.cs index 1f8b494c41..8b0568b313 100644 --- a/samples/CookieSample/Startup.cs +++ b/samples/CookieSample/Startup.cs @@ -46,6 +46,7 @@ namespace CookieSample { var host = new WebHostBuilder() .UseDefaultConfiguration(args) + .UseServer("Microsoft.AspNetCore.Server.Kestrel") .UseIISPlatformHandlerUrl() .UseStartup() .Build(); diff --git a/samples/CookieSample/hosting.json b/samples/CookieSample/hosting.json deleted file mode 100644 index 6a93dbafa8..0000000000 --- a/samples/CookieSample/hosting.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "server": "Microsoft.AspNetCore.Server.Kestrel" -} diff --git a/samples/CookieSessionSample/Startup.cs b/samples/CookieSessionSample/Startup.cs index 57593d8789..3db8f11556 100644 --- a/samples/CookieSessionSample/Startup.cs +++ b/samples/CookieSessionSample/Startup.cs @@ -56,6 +56,7 @@ namespace CookieSessionSample { var host = new WebHostBuilder() .UseDefaultConfiguration(args) + .UseServer("Microsoft.AspNetCore.Server.Kestrel") .UseIISPlatformHandlerUrl() .UseStartup() .Build(); diff --git a/samples/CookieSessionSample/hosting.json b/samples/CookieSessionSample/hosting.json deleted file mode 100644 index 6a93dbafa8..0000000000 --- a/samples/CookieSessionSample/hosting.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "server": "Microsoft.AspNetCore.Server.Kestrel" -} diff --git a/samples/JwtBearerSample/Startup.cs b/samples/JwtBearerSample/Startup.cs index 34ee646c77..3a4ecfba6c 100644 --- a/samples/JwtBearerSample/Startup.cs +++ b/samples/JwtBearerSample/Startup.cs @@ -116,6 +116,7 @@ namespace JwtBearerSample { var host = new WebHostBuilder() .UseDefaultConfiguration(args) + .UseServer("Microsoft.AspNetCore.Server.Kestrel") .UseIISPlatformHandlerUrl() .UseStartup() .Build(); diff --git a/samples/JwtBearerSample/hosting.json b/samples/JwtBearerSample/hosting.json deleted file mode 100644 index 6a93dbafa8..0000000000 --- a/samples/JwtBearerSample/hosting.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "server": "Microsoft.AspNetCore.Server.Kestrel" -} diff --git a/samples/OpenIdConnectSample/Startup.cs b/samples/OpenIdConnectSample/Startup.cs index 11a95a5717..f0f9feb3ae 100644 --- a/samples/OpenIdConnectSample/Startup.cs +++ b/samples/OpenIdConnectSample/Startup.cs @@ -70,6 +70,7 @@ namespace OpenIdConnectSample { var host = new WebHostBuilder() .UseDefaultConfiguration(args) + .UseServer("Microsoft.AspNetCore.Server.Kestrel") .UseIISPlatformHandlerUrl() .UseStartup() .Build(); diff --git a/samples/OpenIdConnectSample/hosting.json b/samples/OpenIdConnectSample/hosting.json deleted file mode 100644 index 6a93dbafa8..0000000000 --- a/samples/OpenIdConnectSample/hosting.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "server": "Microsoft.AspNetCore.Server.Kestrel" -} diff --git a/samples/SocialSample/Startup.cs b/samples/SocialSample/Startup.cs index 8e6cd1768f..ffbaf8dc59 100644 --- a/samples/SocialSample/Startup.cs +++ b/samples/SocialSample/Startup.cs @@ -327,6 +327,7 @@ namespace CookieSample { var host = new WebHostBuilder() .UseDefaultConfiguration(args) + .UseServer("Microsoft.AspNetCore.Server.Kestrel") .UseIISPlatformHandlerUrl() .UseStartup() .Build(); diff --git a/samples/SocialSample/hosting.json b/samples/SocialSample/hosting.json deleted file mode 100644 index 6a93dbafa8..0000000000 --- a/samples/SocialSample/hosting.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "server": "Microsoft.AspNetCore.Server.Kestrel" -}