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> </PropertyGroup>
<ItemGroup> <ItemGroup>
<Folder Include="wwwroot\" /> <Content Include="wwwroot\htmlpage.html" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>

View File

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