Skip to content

Commit c543698

Browse files
committed
Review feedback
1 parent b61dfc6 commit c543698

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

articles/azure-app-configuration/quickstart-feature-flag-azure-functions-csharp.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,6 @@ You can connect to your App Configuration store using Microsoft Entra ID (recomm
8181
Uri endpoint = new(Environment.GetEnvironmentVariable("AZURE_APPCONFIG_ENDPOINT") ??
8282
throw new InvalidOperationException("The environment variable 'AZURE_APPCONFIG_ENDPOINT' is not set or is empty."));
8383
options.Connect(endpoint, new DefaultAzureCredential())
84-
// Load a nonexisting dummy key to skip configuration data if desired
85-
.Select("_");
8684
// Load all feature flags with no label. To load feature flags with specific keys and labels, set via FeatureFlagOptions.Select.
8785
// Use the default refresh interval of 30 seconds. It can be overridden via FeatureFlagOptions.SetRefreshInterval.
8886
.UseFeatureFlags();
@@ -105,8 +103,6 @@ You can connect to your App Configuration store using Microsoft Entra ID (recomm
105103
string connectionString = Environment.GetEnvironmentVariable("AZURE_APPCONFIG_CONNECTION_STRING") ??
106104
throw new InvalidOperationException("The environment variable 'AZURE_APPCONFIG_CONNECTION_STRING' is not set or is empty.");
107105
options.Connect(connectionString)
108-
// Load a nonexisting dummy key to skip configuration data if desired
109-
.Select("_");
110106
// Load all feature flags with no label. To load feature flags with specific keys and labels, set via FeatureFlagOptions.Select.
111107
// Use the default refresh interval of 30 seconds. It can be overridden via FeatureFlagOptions.SetRefreshInterval.
112108
.UseFeatureFlags();
@@ -117,7 +113,7 @@ You can connect to your App Configuration store using Microsoft Entra ID (recomm
117113
The `UseFeatureFlags()` method instructs the provider to load feature flags. By default, all feature flags without labels are loaded and refreshed every 30 seconds. The selection and refresh behavior of feature flags are configured independently from other configuration key-values. You can customize these behaviors by passing a `FeatureFlagOptions` action to the `UseFeatureFlags` method. Use `FeatureFlagOptions.Select` to specify the keys and labels of feature flags to load, and use `FeatureFlagOptions.SetRefreshInterval` to override the default refresh interval.
118114

119115
> [!TIP]
120-
> If you don't want any configuration other than feature flags to be loaded to your application, you can call `Select("_")` to only load a nonexisting dummy key `"_"`. By default, all configuration key-values without labels in your App Configuration store will be loaded if no `Select` method is called.
116+
> If you don't want any configuration other than feature flags to be loaded to your application, you can call `options.Select("_")` to only load a nonexisting dummy key `"_"`. By default, all configuration key-values without labels in your App Configuration store will be loaded if no `Select` method is called.
121117

122118
1. Update the *Program.cs* file to enable automatic feature flag refresh on each function execution by adding the Azure App Configuration middleware. You also register feature management service, allowing you to inject and use it in your function code later.
123119

0 commit comments

Comments
 (0)