WebHost static API updates

- Specify ApplicationName when wrapping RequestDelegate or RouteBuilder
- Add debug logger by default
This commit is contained in:
John Luo 2017-04-21 19:13:33 -07:00
parent 4331c021b1
commit 0d66125fda
2 changed files with 3 additions and 3 deletions

View File

@ -8,7 +8,7 @@
</PropertyGroup>
<ItemGroup>
<Folder Include="wwwroot\" />
<Content Include="wwwroot\htmlpage.html" />
</ItemGroup>
<ItemGroup>

View File

@ -69,8 +69,8 @@ namespace Microsoft.AspNetCore
/// </summary>
/// <param name="app">The delegate that configures the <see cref="IApplicationBuilder"/>.</param>
/// <returns>A started <see cref="IWebHost"/> that hosts the application.</returns>
public static IWebHost StartWith(Action<IApplicationBuilder> app) =>
StartWith(url: null, app: app);
public static IWebHost Start(Action<IApplicationBuilder> app) =>
Start(url: null, app: app);
/// <summary>
/// Initializes and starts a new <see cref="IWebHost"/> with pre-configured defaults.