Skip to content

Commit 23911d6

Browse files
authored
Merge pull request #42698 from m-u-p/patch-1
Change .UseFeatureFlags for 3.x code
2 parents 5832d87 + 2304a9e commit 23911d6

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

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

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,8 +142,11 @@ Add the [Secret Manager tool](https://docs.microsoft.com/aspnet/core/security/ap
142142
webBuilder.ConfigureAppConfiguration((hostingContext, config) =>
143143
{
144144
var settings = config.Build();
145-
config.AddAzureAppConfiguration(settings["ConnectionStrings:AppConfig"])
146-
.UseFeatureFlags();
145+
config.AddAzureAppConfiguration(options => {
146+
options.Connect(settings["ConnectionStrings:AppConfig"])
147+
.UseFeatureFlags();
148+
});
149+
147150
})
148151
.UseStartup<Startup>());
149152
```

0 commit comments

Comments
 (0)