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
+3-2Lines changed: 3 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,6 +20,7 @@ The feature management support extends the dynamic configuration feature in App
20
20
## Prerequisites
21
21
22
22
Follow the documents to create an ASP.NET Core app with dynamic configuration.
23
+
23
24
-[Quickstart: Create an ASP.NET Core app with App Configuration](./quickstart-aspnet-core-app.md)
24
25
-[Tutorial: Use dynamic configuration in an ASP.NET Core app](./enable-dynamic-configuration-aspnet-core.md)
25
26
@@ -57,7 +58,7 @@ Add a feature flag called *Beta* to the App Configuration store and leave **Labe
57
58
```
58
59
59
60
> [!TIP]
60
-
> When no parameter is passed to the `UseFeatureFlags` method, it loads *all* feature flags with *no label* in your App Configuration store. The default refresh expiration of feature flags is 30 seconds. You can customize this behavior via the `FeatureFlagOptions` parameter. For example, the following code snippet loads only feature flags that start with *TestApp:* in their *key name* and have the label *dev*. The code also changes the refresh expiration time to 5 minutes. Note that this refresh expiration time is separate from that for regular key-values.
61
+
> When no parameter is passed to the `UseFeatureFlags` method, it loads *all* feature flags with *no label* in your App Configuration store. The default refresh interval of feature flags is 30 seconds. You can customize this behavior via the `FeatureFlagOptions` parameter. For example, the following code snippet loads only feature flags that start with *TestApp:* in their *key name* and have the label *dev*. The code also changes the refresh interval time to 5 minutes. Note that this refresh interval time is separate from that for regular key-values.
61
62
>
62
63
> ```csharp
63
64
> options.UseFeatureFlags(featureFlagOptions =>
@@ -165,7 +166,7 @@ Add a feature flag called *Beta* to the App Configuration store and leave **Labe
165
166
166
167
1. Select **Feature manager** and locate the **Beta** feature flag. Enable the flag by selecting the checkbox under **Enabled**.
167
168
168
-
1. Refresh the browser a few times. When the cache expires after 30 seconds, the page shows with updated content.
169
+
1. Refresh the browser a few times. When the refresh interval time window passes, the page will show with updated content.
169
170
170
171

Copy file name to clipboardExpand all lines: articles/azure-app-configuration/quickstart-feature-flag-azure-functions-csharp.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
@@ -68,7 +68,7 @@ This project will use [dependency injection in .NET Azure Functions](../azure-fu
68
68
-[Microsoft.FeatureManagement](https://www.nuget.org/packages/Microsoft.FeatureManagement/) version 2.2.0 or later
69
69
-[Microsoft.Azure.Functions.Extensions](https://www.nuget.org/packages/Microsoft.Azure.Functions.Extensions/) version 1.1.0 or later
70
70
71
-
2. Add a new file, *Startup.cs*, with the following code. It defines a class named `Startup` that implements the `FunctionsStartup` abstract class. An assembly attribute is used to specify the type name used during Azure Functions startup.
71
+
1. Add a new file, *Startup.cs*, with the following code. It defines a class named `Startup` that implements the `FunctionsStartup` abstract class. An assembly attribute is used to specify the type name used during Azure Functions startup.
72
72
73
73
```csharp
74
74
usingSystem;
@@ -94,7 +94,7 @@ This project will use [dependency injection in .NET Azure Functions](../azure-fu
The `UseFeatureFlags()` methodtellstheprovidertoloadfeatureflags. Allfeatureflagshaveadefaultcacheexpirationof30secondsbeforerecheckingfor changes. The expiration interval can be updated by setting the `FeatureFlagsOptions.CacheExpirationInterval` property passed to the `UseFeatureFlags` method.
100
100
@@ -113,7 +113,7 @@ This project will use [dependency injection in .NET Azure Functions](../azure-fu
113
113
> [!TIP]
114
114
>Ifyoudon'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 in your App Configuration store will be loaded if no `Select` method is called.
0 commit comments