Fixes#6523
[Internal Review Topic](https://review.docs.microsoft.com/en-us/aspnet/core/security/app-secrets?view=aspnetcore-1.0&branch=pr-en-us-6528)
Tiny nits in the app secrets update: "or later" and a couple of comma splices.
What I wrote for another version of this was more explicit. I'm concerned that the current version doesn't tell devs exactly why/how `AddUserSecrets` is added, and it doesn't say that if `CreateDefaultBuilder` isn't used that they'll still need to do it manually.
Starting with ...
> \- Add the user secrets configuration source to the `Startup` constructor:
> Add the user secrets configuration source with a call to \[AddUserSecrets](/dotnet/api/microsoft.extensions.configuration.usersecretsconfigurationextensions.addusersecrets) in the `Startup` constructor:
>
> \[!code-csharp\[](app-secrets/samples/1.1/UserSecrets/Startup.cs?name=snippet_StartupConstructor&highlight=5-8)]
> ::: moniker-end
> ::: moniker range=">= aspnetcore-2.0"
> When a project calls \[CreateDefaultBuilder](/dotnet/api/microsoft.aspnetcore.webhost.createdefaultbuilder) to initialize a new instance of the host with preconfigured defaults, \[AddUserSecrets](/dotnet/api/microsoft.extensions.configuration.usersecretsconfigurationextensions.addusersecrets) is called when the \[EnvironmentName](/dotnet/api/microsoft.aspnetcore.hosting.ihostingenvironment.environmentname) is \[Development](/dotnet/api/microsoft.aspnetcore.hosting.environmentname.development):
>
> \[!code-csharp\[](app-secrets/samples/2.1/UserSecrets/Program.cs?name=snippet_CreateWebHostBuilder&highlight=2)]
>
> When `CreateDefaultBuilder` isn't called during host construction, add the user secrets configuration source with a call to \[AddUserSecrets](/dotnet/api/microsoft.extensions.configuration.usersecretsconfigurationextensions.addusersecrets) in the `Startup` constructor:
>
> \[!code-csharp\[](app-secrets/samples/1.1/UserSecrets/Startup.cs?name=snippet_StartupConstructor&highlight=5-8)]
> ::: moniker-end
Snippet the call to `CreateDefaultBuilder` to show it (line 2 is highlighted) ...
```csharp
#region snippet_CreateWebHostBuilder
public static IWebHostBuilder CreateWebHostBuilder(string[] args) =>
WebHost.CreateDefaultBuilder(args)
.UseStartup<Startup>();
#endregion
```
... and the sample naming issue remains ("1.1" and "2.1" instead of "1.x" and "2.x").
If anything here looks good, I can mod this branch to make additional updates. Otherwise, nevermind. Just spit-ball'in here.
* Initial IAuthorizationPolicyProvider documentation
* Fix links to use xref pattern
* Adjust some phrasing to use more second-person perspective, more active voice, and less future tense
(as suggested by https://github.com/dotnet/docs/blob/master/styleguide/voice-tone.md)
* A few more readability/style tweaks
* Update iauthorizationpolicyprovider.md
* Update iauthorizationpolicyprovider.md
* A few tweaks based on PR feedback
* Readability improvements based on PR feedback
* Include external policy providers as a reason for using `IAuthorizatonPolicyProvider`
* Update azure-ad-b2c-webapi.md
Adding information about **Scope** url - how it is constructed. as this *api* part was causing a lot of issues in our dev team.
* Update azure-ad-b2c-webapi.md
removing unnecessary comas.
* Minor tweaks
* More verbiage changes
* Truncate wording
* Add missing word
* Include file for ASP.NET Core 2.1 (#5702)
* Create 2.1.md
* Update 2.1.md
* Title, description, and H1 updates (3) (#5717)
* Refactor stdout logging warning (#5724)
* Add link to App Service troubleshooting topic (#5722)
* Prereqs tuneup (#5721)
Updates
* Updated http-cookies.md (#5744)
fixed inclues => includes
* changed image to vertical orientation for readability (#5747)
* Get CDN content links on HTTPS protocol (#5736)
* Update cookie sharing topic (#5723)
* Fixed type (#5748)
* Update highlight on dependency-injection.md (#5749)
Currently the highlight is mapping the operation of GetAveragePriority on the incorrect line:
[Statistics_Service.png](https://postimg.org/image/5m0gjw6bf/)
The correction is to highlight the previous line.
* Web API persistent DB (#5741)
* Update next.md
* Minor edits
* Replace gerund in doc title
* Update TodoController2.cs (#5755)
* Describe culture fallback (#5756)
* Describe culture fallback
* Culture fallback patch (#5757)