Skip to content

Instantly share code, notes, and snippets.

@AndSDev
AndSDev / WebHostConfigurationSection.cs
Last active December 2, 2016 14:59
ASP.NET Core 1.1. Use the given configuration settings on the web host. Compatible with the configuration section. Fix https://github.com/aspnet/Hosting/issues/839
using Microsoft.Extensions.Configuration;
namespace Microsoft.AspNetCore.Hosting
{
public static class WebHostConfigurationSection
{
/// <summary>
/// Use the given configuration settings on the web host. Compatible with the configuration section.
/// </summary>
/// <param name="hostBuilder">The <see cref="IWebHostBuilder"/> to configure.</param>