Skip to content

Commit 2304a9e

Browse files
authored
Change .UseFeatureFlags for 3.x code
The current snippet for Update CreateHostBuilder for .NET Core 3.x wont compile. Should be changed as shown above
1 parent ae8b23a commit 2304a9e

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)