Skip to content

Commit de1af9d

Browse files
committed
Merge branch 'main' of https://github.com/MicrosoftDocs/azure-docs-pr into WI239454-upcoming-to-rn
2 parents af8015d + 0cacd08 commit de1af9d

30 files changed

+1159
-44
lines changed

articles/azure-app-configuration/TOC.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@
3535
href: quickstart-feature-flag-aspnet-core.md
3636
- name: .NET/.NET Framework
3737
href: quickstart-feature-flag-dotnet.md
38+
- name: .NET Background Service
39+
href: quickstart-feature-flag-dotnet-background-service.md
3840
- name: Java Spring
3941
href: quickstart-feature-flag-spring-boot.md
4042
- name: Azure Functions

articles/azure-app-configuration/enable-dynamic-configuration-dotnet-background-service.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,15 +43,15 @@ You use the [.NET command-line interface (CLI)](/dotnet/core/tools/) to create a
4343

4444
1. Create a new folder for your project.
4545

46-
2. In the new folder, run the following command to create a new .NET background service project:
46+
1. In the new folder, run the following command to create a new .NET background service project:
4747

4848
```dotnetcli
4949
dotnet new worker
5050
```
5151
5252
## Reload data from App Configuration
5353
54-
1. Add references to the `Microsoft.Extensions.Configuration.AzureAppConfiguration` NuGet package by running the following commands:
54+
1. Add references to the `Microsoft.Extensions.Configuration.AzureAppConfiguration` NuGet package by running the following command:
5555
5656
```dotnetcli
5757
dotnet add package Microsoft.Extensions.Configuration.AzureAppConfiguration
@@ -175,7 +175,7 @@ You use the [.NET command-line interface (CLI)](/dotnet/core/tools/) to create a
175175
176176
---
177177
178-
1. Run the following command to build the console app.
178+
1. Run the following command to build the app.
179179
180180
```dotnetcli
181181
dotnet build
@@ -197,7 +197,7 @@ You use the [.NET command-line interface (CLI)](/dotnet/core/tools/) to create a
197197
|----------------------------|-----------------------------------------------|
198198
| *TestApp:Settings:Message* | *Data from Azure App Configuration - Updated* |
199199
200-
1. Wait for about 30 seconds. You should see the console outputs changed.
200+
1. Wait a few moments for the refresh interval time window to pass. You will see the console outputs changed.
201201
202202
![Screenshot of the refreshed background service.](./media/dotnet-background-service-refresh.png)
203203

articles/azure-app-configuration/enable-dynamic-configuration-dotnet-core-push-refresh.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ The `ProcessPushNotification` method takes in a `PushNotification` object contai
233233
|---|---|
234234
| TestApp:Settings:Message | Data from Azure App Configuration - Updated |
235235

236-
1. Wait for 30 seconds to allow the event to be processed and configuration to be updated.
236+
1. Wait for a few moments to allow the event to be processed. You will see the updated configuration.
237237

238238
![Push refresh run after updated](./media/dotnet-core-app-pushrefresh-final.png)
239239

-14.5 KB
Loading
31.7 KB
Loading
80.8 KB
Loading
98.9 KB
Loading

articles/azure-app-configuration/quickstart-dotnet-core-app.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ You can use the [.NET command-line interface (CLI)](/dotnet/core/tools/) to crea
3535

3636
1. Create a new folder for your project.
3737

38-
2. In the new folder, run the following command to create a new .NET console app project:
38+
1. In the new folder, run the following command to create a new .NET console app project:
3939

4040
```dotnetcli
4141
dotnet new console
@@ -49,20 +49,20 @@ You can use the [.NET command-line interface (CLI)](/dotnet/core/tools/) to crea
4949
dotnet add package Microsoft.Extensions.Configuration.AzureAppConfiguration
5050
```
5151
52-
2. Run the following command to restore packages for your project:
52+
1. Run the following command to restore packages for your project:
5353
5454
```dotnetcli
5555
dotnet restore
5656
```
5757
58-
3. Open *Program.cs*, and add a reference to the .NET App Configuration provider.
58+
1. Open *Program.cs*, and add the following statements:
5959
6060
```csharp
6161
using Microsoft.Extensions.Configuration;
6262
using Microsoft.Extensions.Configuration.AzureAppConfiguration;
6363
```
6464
65-
4. Use App Configuration by calling the `AddAzureAppConfiguration` method in the `Program.cs` file.
65+
1. Use App Configuration by calling the `AddAzureAppConfiguration` method in the `Program.cs` file.
6666
6767
```csharp
6868
var builder = new ConfigurationBuilder();

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ The feature management support extends the dynamic configuration feature in App
2020
## Prerequisites
2121

2222
Follow the documents to create an ASP.NET Core app with dynamic configuration.
23+
2324
- [Quickstart: Create an ASP.NET Core app with App Configuration](./quickstart-aspnet-core-app.md)
2425
- [Tutorial: Use dynamic configuration in an ASP.NET Core app](./enable-dynamic-configuration-aspnet-core.md)
2526

@@ -57,7 +58,7 @@ Add a feature flag called *Beta* to the App Configuration store and leave **Labe
5758
```
5859
5960
> [!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.
6162
>
6263
> ```csharp
6364
> options.UseFeatureFlags(featureFlagOptions =>
@@ -165,7 +166,7 @@ Add a feature flag called *Beta* to the App Configuration store and leave **Labe
165166
166167
1. Select **Feature manager** and locate the **Beta** feature flag. Enable the flag by selecting the checkbox under **Enabled**.
167168
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.
169170
170171
![Feature flag after enabled](./media/quickstarts/aspnet-core-feature-flag-local-after.png)
171172

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ This project will use [dependency injection in .NET Azure Functions](../azure-fu
6868
- [Microsoft.FeatureManagement](https://www.nuget.org/packages/Microsoft.FeatureManagement/) version 2.2.0 or later
6969
- [Microsoft.Azure.Functions.Extensions](https://www.nuget.org/packages/Microsoft.Azure.Functions.Extensions/) version 1.1.0 or later
7070

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.
7272

7373
```csharp
7474
using System;
@@ -94,7 +94,7 @@ This project will use [dependency injection in .NET Azure Functions](../azure-fu
9494
```
9595

9696

97-
3. Update the `ConfigureAppConfiguration` method, and add Azure App Configuration provider as an extra configuration source by calling `AddAzureAppConfiguration()`.
97+
1. Update the `ConfigureAppConfiguration` method, and add Azure App Configuration provider as an extra configuration source by calling `AddAzureAppConfiguration()`.
9898

9999
The `UseFeatureFlags()` method tells the provider to load feature flags. All feature flags have a default cache expiration of 30 seconds before rechecking for changes. The expiration interval can be updated by setting the `FeatureFlagsOptions.CacheExpirationInterval` property passed to the `UseFeatureFlags` method.
100100

@@ -113,7 +113,7 @@ This project will use [dependency injection in .NET Azure Functions](../azure-fu
113113
> [!TIP]
114114
> 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 in your App Configuration store will be loaded if no `Select` method is called.
115115

116-
4. Update the `Configure` method to make Azure App Configuration services and feature manager available through dependency injection.
116+
1. Update the `Configure` method to make Azure App Configuration services and feature manager available through dependency injection.
117117

118118
```csharp
119119
public override void Configure(IFunctionsHostBuilder builder)
@@ -123,7 +123,7 @@ This project will use [dependency injection in .NET Azure Functions](../azure-fu
123123
}
124124
```
125125

126-
5. Open *Function1.cs*, and add the following namespaces.
126+
1. Open *Function1.cs*, and add the following namespaces.
127127

128128
```csharp
129129
using System.Linq;
@@ -144,7 +144,7 @@ This project will use [dependency injection in .NET Azure Functions](../azure-fu
144144
}
145145
```
146146

147-
6. Update the `Run` method to change the value of the displayed message depending on the state of the feature flag.
147+
1. Update the `Run` method to change the value of the displayed message depending on the state of the feature flag.
148148

149149
The `TryRefreshAsync` method is called at the beginning of the Functions call to refresh feature flags. It will be a no-op if the cache expiration time window isn't reached. Remove the `await` operator if you prefer the feature flags to be refreshed without blocking the current Functions call. In that case, later Functions calls will get updated value.
150150

@@ -200,7 +200,7 @@ This project will use [dependency injection in .NET Azure Functions](../azure-fu
200200
201201
1. Select **Feature manager**, and change the state of the **Beta** key to **On**.
202202

203-
1. Refresh the browser a few times. When the cached feature flag expires after 30 seconds, the page should have changed to indicate the feature flag `Beta` is turned on, as shown in the image below.
203+
1. Refresh the browser a few times. When the refresh interval time window passes, the page will change to indicate the feature flag `Beta` is turned on, as shown in the image below.
204204

205205
![Quickstart Function feature flag enabled](./media/quickstarts/functions-launch-ff-enabled.png)
206206

0 commit comments

Comments
 (0)