From b1df299ec396f4e0164cb8ca61e15fc5730d5f33 Mon Sep 17 00:00:00 2001 From: Hisham Bin Ateya Date: Thu, 4 Feb 2016 13:37:04 +0300 Subject: [PATCH] Add 'UseServer' --- samples/AntiforgerySample/Startup.cs | 1 + samples/AntiforgerySample/hosting.json | 3 --- 2 files changed, 1 insertion(+), 3 deletions(-) delete mode 100644 samples/AntiforgerySample/hosting.json diff --git a/samples/AntiforgerySample/Startup.cs b/samples/AntiforgerySample/Startup.cs index 05c2026906..c8f6263b7b 100644 --- a/samples/AntiforgerySample/Startup.cs +++ b/samples/AntiforgerySample/Startup.cs @@ -70,6 +70,7 @@ namespace AntiforgerySample { var host = new WebHostBuilder() .UseDefaultConfiguration(args) + .UseServer("Microsoft.AspNetCore.Server.Kestrel") .UseIISPlatformHandlerUrl() .UseStartup() .Build(); diff --git a/samples/AntiforgerySample/hosting.json b/samples/AntiforgerySample/hosting.json deleted file mode 100644 index 6a93dbafa8..0000000000 --- a/samples/AntiforgerySample/hosting.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "server": "Microsoft.AspNetCore.Server.Kestrel" -}