From 277b22996134cac5de2575b00c5aab7c452a15d9 Mon Sep 17 00:00:00 2001 From: Luke Latham <1622880+guardrex@users.noreply.github.com> Date: Mon, 21 Aug 2017 09:55:47 -0500 Subject: [PATCH] Remove setting applicationName key and example (#4049) Addresses #1870 Per @davidfowl: https://github.com/aspnet/Mvc/issues/6685#issuecomment-323599318 --- aspnetcore/fundamentals/hosting.md | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/aspnetcore/fundamentals/hosting.md b/aspnetcore/fundamentals/hosting.md index 69b2824769..751ddb512c 100644 --- a/aspnetcore/fundamentals/hosting.md +++ b/aspnetcore/fundamentals/hosting.md @@ -97,19 +97,10 @@ host.Run(); ## Configuring a Host -The `WebHostBuilder` provides methods for setting most of the available configuration values for the host, which can also be set directly using `UseSetting` and associated key. For example, to specify the application name: - -```csharp -new WebHostBuilder() - .UseSetting("applicationName", "MyApp") -``` +The `WebHostBuilder` provides methods for setting most of the available configuration values for the host, which can also be set directly using `UseSetting` and associated key. ### Host Configuration Values -**Application Name** `string` - -Key: `applicationName`. This configuration setting specifies the value that will be returned from `IHostingEnvironment.ApplicationName`. - **Capture Startup Errors** `bool` Key: `captureStartupErrors`. Defaults to `false`. When `false`, errors during startup result in the host exiting. When `true`, the host will capture any exceptions from the `Startup` class and attempt to start the server. It will display an error page (generic, or detailed, based on the Detailed Errors setting, below) for every request. Set using the `CaptureStartupErrors` method.