Update samples and react to Kestrel extensions

This commit is contained in:
John Luo 2016-03-30 17:33:25 -07:00
parent 6bf25cecec
commit 22b37fb83b
40 changed files with 81 additions and 46 deletions

View File

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

View File

@ -9,7 +9,8 @@
"dependencies": {
"Microsoft.AspNetCore.IISPlatformHandler": "1.0.0-*",
"Microsoft.AspNetCore.Mvc": "1.0.0-*",
"Microsoft.AspNetCore.Server.Kestrel": "1.0.0-*"
"Microsoft.AspNetCore.Server.Kestrel": "1.0.0-*",
"Microsoft.NETCore.Platforms": "1.0.1-*"
},
"frameworks": {
"net451": {},

View File

@ -29,11 +29,11 @@ namespace CustomRouteSample.Web
var host = new WebHostBuilder()
.UseDefaultHostingConfiguration(args)
.UseIISPlatformHandlerUrl()
.UseServer("Microsoft.AspNetCore.Server.Kestrel")
.UseKestrel()
.UseStartup<Startup>()
.Build();
host.Run();
}
}
}
}

View File

@ -9,7 +9,8 @@
"dependencies": {
"Microsoft.AspNetCore.IISPlatformHandler": "1.0.0-*",
"Microsoft.AspNetCore.Mvc": "1.0.0-*",
"Microsoft.AspNetCore.Server.Kestrel": "1.0.0-*"
"Microsoft.AspNetCore.Server.Kestrel": "1.0.0-*",
"Microsoft.NETCore.Platforms": "1.0.1-*"
},
"frameworks": {
"net451": {},

View File

@ -46,11 +46,11 @@ namespace EmbeddedViewSample.Web
var host = new WebHostBuilder()
.UseDefaultHostingConfiguration(args)
.UseIISPlatformHandlerUrl()
.UseServer("Microsoft.AspNetCore.Server.Kestrel")
.UseKestrel()
.UseStartup<Startup>()
.Build();
host.Run();
}
}
}
}

View File

@ -11,7 +11,8 @@
"Microsoft.AspNetCore.IISPlatformHandler": "1.0.0-*",
"Microsoft.AspNetCore.Mvc": "1.0.0-*",
"Microsoft.AspNetCore.Server.Kestrel": "1.0.0-*",
"Microsoft.Extensions.FileProviders.Embedded": "1.0.0-*"
"Microsoft.Extensions.FileProviders.Embedded": "1.0.0-*",
"Microsoft.NETCore.Platforms": "1.0.1-*"
},
"frameworks": {
"net451": {},

View File

@ -42,11 +42,11 @@ namespace FormatFilterSample.Web
var host = new WebHostBuilder()
.UseDefaultHostingConfiguration(args)
.UseIISPlatformHandlerUrl()
.UseServer("Microsoft.AspNetCore.Server.Kestrel")
.UseKestrel()
.UseStartup<Startup>()
.Build();
host.Run();
}
}
}
}

View File

@ -10,7 +10,8 @@
"Microsoft.AspNetCore.IISPlatformHandler": "1.0.0-*",
"Microsoft.AspNetCore.Mvc": "1.0.0-*",
"Microsoft.AspNetCore.Mvc.Formatters.Xml": "1.0.0-*",
"Microsoft.AspNetCore.Server.Kestrel": "1.0.0-*"
"Microsoft.AspNetCore.Server.Kestrel": "1.0.0-*",
"Microsoft.NETCore.Platforms": "1.0.1-*"
},
"frameworks": {
"net451": {},

View File

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

View File

@ -9,7 +9,8 @@
"dependencies": {
"Microsoft.AspNetCore.IISPlatformHandler": "1.0.0-*",
"Microsoft.AspNetCore.Mvc": "1.0.0-*",
"Microsoft.AspNetCore.Server.Kestrel": "1.0.0-*"
"Microsoft.AspNetCore.Server.Kestrel": "1.0.0-*",
"Microsoft.NETCore.Platforms": "1.0.1-*"
},
"frameworks": {
"net451": {},

View File

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

View File

@ -9,7 +9,8 @@
"dependencies": {
"Microsoft.AspNetCore.IISPlatformHandler": "1.0.0-*",
"Microsoft.AspNetCore.Mvc": "1.0.0-*",
"Microsoft.AspNetCore.Server.Kestrel": "1.0.0-*"
"Microsoft.AspNetCore.Server.Kestrel": "1.0.0-*",
"Microsoft.NETCore.Platforms": "1.0.1-*"
},
"frameworks": {
"net451": {},

View File

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

View File

@ -9,7 +9,8 @@
"dependencies": {
"Microsoft.AspNetCore.IISPlatformHandler": "1.0.0-*",
"Microsoft.AspNetCore.Mvc": "1.0.0-*",
"Microsoft.AspNetCore.Server.Kestrel": "1.0.0-*"
"Microsoft.AspNetCore.Server.Kestrel": "1.0.0-*",
"Microsoft.NETCore.Platforms": "1.0.1-*"
},
"frameworks": {
"net451": {},

View File

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

View File

@ -15,13 +15,14 @@
"Microsoft.AspNetCore.Server.Kestrel": "1.0.0-*",
"Microsoft.AspNetCore.StaticFiles": "1.0.0-*",
"Microsoft.Extensions.Configuration.Json": "1.0.0-*",
"Microsoft.Extensions.Logging.Console": "1.0.0-*"
"Microsoft.Extensions.Logging.Console": "1.0.0-*",
"Microsoft.NETCore.Platforms": "1.0.1-*"
},
"tools": {
"dotnet-razor-tooling": "1.0.0-*"
},
"frameworks": {
"net451": { },
"net451": {},
"netstandardapp1.5": {
"imports": [
"dnxcore50",

View File

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

View File

@ -12,7 +12,8 @@
"Microsoft.AspNetCore.Mvc": "1.0.0-*",
"Microsoft.AspNetCore.Mvc.TagHelpers": "1.0.0-*",
"Microsoft.AspNetCore.Server.Kestrel": "1.0.0-*",
"Microsoft.AspNetCore.StaticFiles": "1.0.0-*"
"Microsoft.AspNetCore.StaticFiles": "1.0.0-*",
"Microsoft.NETCore.Platforms": "1.0.1-*"
},
"frameworks": {
"net451": {},

View File

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

View File

@ -14,7 +14,8 @@
"Microsoft.AspNetCore.Diagnostics": "1.0.0-*",
"Microsoft.AspNetCore.Mvc": "1.0.0-*",
"Microsoft.AspNetCore.Mvc.TagHelpers": "1.0.0-*",
"Microsoft.AspNetCore.StaticFiles": "1.0.0-*"
"Microsoft.AspNetCore.StaticFiles": "1.0.0-*",
"Microsoft.NETCore.Platforms": "1.0.1-*"
},
"tools": {
"dotnet-razor-tooling": "1.0.0-*"

View File

@ -40,10 +40,11 @@ namespace UrlHelperSample.Web
var host = new WebHostBuilder()
.UseDefaultHostingConfiguration(args)
.UseStartup<Startup>()
.UseServer("Microsoft.AspNetCore.Server.Kestrel")
.UseKestrel()
.Build();
host.Run();
}
}
}

View File

@ -8,7 +8,8 @@
},
"dependencies": {
"Microsoft.AspNetCore.Mvc": "1.0.0-*",
"Microsoft.AspNetCore.Server.Kestrel": "1.0.0-*"
"Microsoft.AspNetCore.Server.Kestrel": "1.0.0-*",
"Microsoft.NETCore.Platforms": "1.0.1-*"
},
"frameworks": {
"net451": {},

View File

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

View File

@ -37,10 +37,11 @@ namespace ApplicationModelWebSite
var host = new WebHostBuilder()
.UseDefaultHostingConfiguration(args)
.UseStartup<Startup>()
.UseServer("Microsoft.AspNetCore.Server.Kestrel")
.UseKestrel()
.Build();
host.Run();
}
}
}

View File

@ -58,10 +58,11 @@ namespace BasicWebSite
var host = new WebHostBuilder()
.UseDefaultHostingConfiguration(args)
.UseStartup<Startup>()
.UseServer("Microsoft.AspNetCore.Server.Kestrel")
.UseKestrel()
.Build();
host.Run();
}
}
}

View File

@ -41,10 +41,11 @@ namespace ControllersFromServicesWebSite
var host = new WebHostBuilder()
.UseDefaultHostingConfiguration(args)
.UseStartup<Startup>()
.UseServer("Microsoft.AspNetCore.Server.Kestrel")
.UseKestrel()
.Build();
host.Run();
}
}
}

View File

@ -83,10 +83,10 @@ namespace CorsWebSite
var host = new WebHostBuilder()
.UseDefaultHostingConfiguration(args)
.UseStartup<Startup>()
.UseServer("Microsoft.AspNetCore.Server.Kestrel")
.UseKestrel()
.Build();
host.Run();
}
}
}
}

View File

@ -28,10 +28,11 @@ namespace ErrorPageMiddlewareWebSite
var host = new WebHostBuilder()
.UseDefaultHostingConfiguration(args)
.UseStartup<Startup>()
.UseServer("Microsoft.AspNetCore.Server.Kestrel")
.UseKestrel()
.Build();
host.Run();
}
}
}

View File

@ -30,10 +30,10 @@ namespace FilesWebSite
var host = new WebHostBuilder()
.UseDefaultHostingConfiguration(args)
.UseStartup<Startup>()
.UseServer("Microsoft.AspNetCore.Server.Kestrel")
.UseKestrel()
.Build();
host.Run();
}
}
}
}

View File

@ -72,10 +72,11 @@ namespace FiltersWebSite
var host = new WebHostBuilder()
.UseDefaultHostingConfiguration(args)
.UseStartup<Startup>()
.UseServer("Microsoft.AspNetCore.Server.Kestrel")
.UseKestrel()
.Build();
host.Run();
}
}
}

View File

@ -39,10 +39,11 @@ namespace FormatterWebSite
var host = new WebHostBuilder()
.UseDefaultHostingConfiguration(args)
.UseStartup<Startup>()
.UseServer("Microsoft.AspNetCore.Server.Kestrel")
.UseKestrel()
.Build();
host.Run();
}
}
}

View File

@ -47,10 +47,11 @@ namespace HtmlGenerationWebSite
var host = new WebHostBuilder()
.UseDefaultHostingConfiguration(args)
.UseStartup<Startup>()
.UseServer("Microsoft.AspNetCore.Server.Kestrel")
.UseKestrel()
.Build();
host.Run();
}
}
}

View File

@ -49,10 +49,11 @@ namespace RazorPageExecutionInstrumentationWebSite
var host = new WebHostBuilder()
.UseDefaultHostingConfiguration(args)
.UseStartup<Startup>()
.UseServer("Microsoft.AspNetCore.Server.Kestrel")
.UseKestrel()
.Build();
host.Run();
}
}
}

View File

@ -66,10 +66,11 @@ namespace RazorWebSite
var host = new WebHostBuilder()
.UseDefaultHostingConfiguration(args)
.UseStartup<Startup>()
.UseServer("Microsoft.AspNetCore.Server.Kestrel")
.UseKestrel()
.Build();
host.Run();
}
}
}

View File

@ -46,10 +46,11 @@ namespace RoutingWebSite
var host = new WebHostBuilder()
.UseDefaultHostingConfiguration(args)
.UseStartup<Startup>()
.UseServer("Microsoft.AspNetCore.Server.Kestrel")
.UseKestrel()
.Build();
host.Run();
}
}
}

View File

@ -34,10 +34,11 @@ namespace SimpleWebSite
var host = new WebHostBuilder()
.UseDefaultHostingConfiguration(args)
.UseStartup<Startup>()
.UseServer("Microsoft.AspNetCore.Server.Kestrel")
.UseKestrel()
.Build();
host.Run();
}
}
}

View File

@ -27,10 +27,11 @@ namespace TagHelpersWebSite
var host = new WebHostBuilder()
.UseDefaultHostingConfiguration(args)
.UseStartup<Startup>()
.UseServer("Microsoft.AspNetCore.Server.Kestrel")
.UseKestrel()
.Build();
host.Run();
}
}
}

View File

@ -31,10 +31,11 @@ namespace VersioningWebSite
var host = new WebHostBuilder()
.UseDefaultHostingConfiguration(args)
.UseStartup<Startup>()
.UseServer("Microsoft.AspNetCore.Server.Kestrel")
.UseKestrel()
.Build();
host.Run();
}
}
}

View File

@ -38,10 +38,11 @@ namespace WebApiCompatShimWebSite
var host = new WebHostBuilder()
.UseDefaultHostingConfiguration(args)
.UseStartup<Startup>()
.UseServer("Microsoft.AspNetCore.Server.Kestrel")
.UseKestrel()
.Build();
host.Run();
}
}
}

View File

@ -82,10 +82,11 @@ namespace XmlFormattersWebSite
var host = new WebHostBuilder()
.UseDefaultHostingConfiguration(args)
.UseStartup<Startup>()
.UseServer("Microsoft.AspNetCore.Server.Kestrel")
.UseKestrel()
.Build();
host.Run();
}
}
}