From de59a61f9a4df32019e1af50b7c070a78e702a28 Mon Sep 17 00:00:00 2001 From: Pranav K Date: Mon, 28 Sep 2020 13:52:04 -0700 Subject: [PATCH] Update GenericHostBuilderExtensions.cs (#26386) --- .../src/GenericHostBuilderExtensions.cs | 25 +++++++++++-------- 1 file changed, 15 insertions(+), 10 deletions(-) diff --git a/src/DefaultBuilder/src/GenericHostBuilderExtensions.cs b/src/DefaultBuilder/src/GenericHostBuilderExtensions.cs index 201fb26fe0..ccf7c3821c 100644 --- a/src/DefaultBuilder/src/GenericHostBuilderExtensions.cs +++ b/src/DefaultBuilder/src/GenericHostBuilderExtensions.cs @@ -1,3 +1,6 @@ +// Copyright (c) .NET Foundation. All rights reserved. +// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. + using System; using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore; @@ -5,24 +8,26 @@ using Microsoft.AspNetCore; namespace Microsoft.Extensions.Hosting { /// - /// Extension methods for configuring the IWebHostBuilder. + /// Extension methods for configuring the . /// public static class GenericHostBuilderExtensions { /// - /// Initializes a new instance of the class with pre-configured defaults. + /// Configures a with defaults for hosting a web app. /// /// - /// The following defaults are applied to the : - /// use Kestrel as the web server and configure it using the application's configuration providers, - /// configure the to map static web assets when is 'Development' using the entry assembly, - /// adds the HostFiltering middleware, - /// adds the ForwardedHeaders middleware if ASPNETCORE_FORWARDEDHEADERS_ENABLED=true, - /// and enable IIS integration. + /// The following defaults are applied to the : + /// + /// use Kestrel as the web server and configure it using the application's configuration providers + /// configure to include static web assets from projects referenced by the entry assembly during development + /// adds the HostFiltering middleware + /// adds the ForwardedHeaders middleware if ASPNETCORE_FORWARDEDHEADERS_ENABLED=true, + /// enable IIS integration + /// /// - /// The instance to configure + /// The instance to configure. /// The configure callback - /// The for chaining. + /// A reference to the after the operation has completed. public static IHostBuilder ConfigureWebHostDefaults(this IHostBuilder builder, Action configure) { if (configure is null)