Skip to content

Commit af521cf

Browse files
Merge pull request #89409 from maud-lv/patch-1
Fix: quickstart-feature-flag-aspnet-core.md .net 3
2 parents 8079b53 + 4cf9e95 commit af521cf

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

articles/azure-app-configuration/quickstart-feature-flag-aspnet-core.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,15 +138,27 @@ dotnet new mvc --no-https --output TestFeatureFlags
138138
}
139139
```
140140
#### [.NET Core 3.x](#tab/core3x)
141-
141+
142+
Add the following code:
142143
```csharp
143144
public void ConfigureServices(IServiceCollection services)
144145
{
145146
services.AddControllersWithViews();
147+
services.AddAzureAppConfiguration();
146148
services.AddFeatureManagement();
147149
}
148150
```
149151
152+
And then add below:
153+
154+
```csharp
155+
public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
156+
{
157+
// ...
158+
app.UseAzureAppConfiguration();
159+
}
160+
```
161+
150162
#### [.NET Core 2.x](#tab/core2x)
151163
152164
```csharp

0 commit comments

Comments
 (0)