You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/azure-app-configuration/quickstart-feature-flag-aspnet-core.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -124,13 +124,13 @@ The Secret Manager tool stores sensitive data for development work outside of yo
124
124
125
125
You can access this secret with the App Configuration API. A colon (:) works in the configuration name with the App Configuration API on all supported platforms. See [Configuration by environment](https://docs.microsoft.com/aspnet/core/fundamentals/configuration).
126
126
127
-
1. Update the `CreateWebHostBuilder` method to use App Configuration by calling the `config.AddAzureAppConfiguration()` method.
128
-
127
+
1. In *Program.cs*, update the `CreateWebHostBuilder` method to use App Configuration by calling the `config.AddAzureAppConfiguration()` method.
128
+
129
129
> [!IMPORTANT]
130
130
> `CreateHostBuilder` replaces `CreateWebHostBuilder` in .NET Core 3.0. Select the correct syntax based on your environment.
131
131
132
132
#### [.NET Core 2.x](#tab/core2x)
133
-
133
+
134
134
```csharp
135
135
public static IWebHostBuilder CreateWebHostBuilder(string[] args) =>
136
136
WebHost.CreateDefaultBuilder(args)
@@ -146,7 +146,7 @@ The Secret Manager tool stores sensitive data for development work outside of yo
146
146
```
147
147
148
148
#### [.NET Core 3.x](#tab/core3x)
149
-
149
+
150
150
```csharp
151
151
public static IHostBuilder CreateHostBuilder(string[] args) =>
152
152
Host.CreateDefaultBuilder(args)
@@ -186,11 +186,11 @@ The Secret Manager tool stores sensitive data for development work outside of yo
186
186
services.AddControllersWithViews();
187
187
services.AddFeatureManagement();
188
188
}
189
-
```
189
+
190
190
---
191
191
192
192
1. Update the `Configure` method to add a middleware to allow the feature flag values to be refreshed at a recurring interval while the ASP.NET Core web app continues to receive requests.
193
-
193
+
194
194
#### [.NET Core 2.x](#tab/core2x)
195
195
```csharp
196
196
public void Configure(IApplicationBuilder app, IHostingEnvironment env)
0 commit comments