Skip to content

Commit 7f3104e

Browse files
update
1 parent 4dd0f96 commit 7f3104e

File tree

7 files changed

+29
-40
lines changed

7 files changed

+29
-40
lines changed

articles/azure-app-configuration/howto-feature-filters-aspnet-core.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
2-
title: Enable conditional features with a custom filter in an ASP.NET Core app
2+
title: Enable conditional features with a custom filter in an ASP.NET Core application
33
titleSuffix: Azure App Configuration
4-
description: Learn how to implement a custom feature filter to enable conditional feature flags for your ASP.NET Core app.
4+
description: Learn how to implement a custom feature filter to enable conditional feature flags for your ASP.NET Core application.
55
ms.service: azure-app-configuration
66
ms.devlang: csharp
77
ms.custom: devx-track-csharp
@@ -11,11 +11,11 @@ ms.topic: how-to
1111
ms.date: 03/28/2024
1212
---
1313

14-
# Tutorial: Enable conditional features with a custom filter in an ASP.NET Core app
14+
# Tutorial: Enable conditional features with a custom filter in an ASP.NET Core application
1515

1616
Feature flags can use feature filters to enable features conditionally. To learn more about feature filters, see [Tutorial: Enable conditional features with feature filters](./howto-feature-filters.md).
1717

18-
The example used in this tutorial is based on the ASP.NET Core app introduced in the feature management [quickstart](./quickstart-feature-flag-aspnet-core.md). Before proceeding further, complete the quickstart to create an ASP.NET Core app with a *Beta* feature flag. Once completed, you must [add a custom feature filter](./howto-feature-filters.md) to the *Beta* feature flag in your App Configuration store.
18+
The example used in this tutorial is based on the ASP.NET Core application introduced in the feature management [quickstart](./quickstart-feature-flag-aspnet-core.md). Before proceeding further, complete the quickstart to create an ASP.NET Core application with a *Beta* feature flag. Once completed, you must [add a custom feature filter](./howto-feature-filters.md) to the *Beta* feature flag in your App Configuration store.
1919

2020
In this tutorial, you'll learn how to implement a custom feature filter and use the feature filter to enable features conditionally.
2121

articles/azure-app-configuration/howto-feature-filters.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Enable conditional features with feature filters
33
titleSuffix: Azure App Configuration
4-
description: Learn how to use feature filters in Azure App Configuration to enable conditional feature flags for your app.
4+
description: Learn how to use feature filters in Azure App Configuration to enable conditional feature flags for your application.
55
ms.service: azure-app-configuration
66
ms.devlang: csharp
77
ms.custom: devx-track-csharp

articles/azure-app-configuration/howto-targetingfilter-aspnet-core.md

Lines changed: 17 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Roll out features to targeted audiences in an ASP.NET Core app
33
titleSuffix: Azure App Configuration
4-
description: Learn how to enable staged rollout of features for targeted audiences in an ASP.NET Core app.
4+
description: Learn how to enable staged rollout of features for targeted audiences in an ASP.NET Core application.
55
ms.service: azure-app-configuration
66
ms.devlang: csharp
77
author: zhiyuanliang
@@ -10,9 +10,9 @@ ms.topic: how-to
1010
ms.date: 03/26/2024
1111
---
1212

13-
# Tutorial: Roll out features to targeted audiences in an ASP.NET Core app
13+
# Tutorial: Roll out features to targeted audiences in an ASP.NET Core application
1414

15-
In this tutorial, you'll use the targeting filter to roll out a feature to targeted audience for your ASP.NET Core app. For more information about the targeting filter, see [Roll out features to targeted audiences](./howto-targetingfilter.md).
15+
In this tutorial, you'll use the targeting filter to roll out a feature to targeted audience for your ASP.NET Core application. For more information about the targeting filter, see [Roll out features to targeted audiences](./howto-targetingfilter.md).
1616

1717
## Prerequisites
1818

@@ -23,7 +23,7 @@ In this tutorial, you'll use the targeting filter to roll out a feature to targe
2323

2424
## Create a web application with a feature flag
2525

26-
In this section, you will create a web application that allows users to sign in and use the *Beta* feature flag you created before. Most of the steps are very similar to what you have done in [Quickstart](./quickstart-feature-flag-aspnet-core.md).
26+
In this section, you will create a web application that allows users to sign in and use the *Beta* feature flag you created before.
2727

2828
1. Create a web application that authenticates against a local database using the following command.
2929

@@ -45,7 +45,7 @@ In this section, you will create a web application that allows users to sign in
4545
dotnet user-secrets set ConnectionStrings:AppConfig "<your_connection_string>"
4646
```
4747
48-
1. Add Azure App Configuration and feature management to your app.
48+
1. Add Azure App Configuration and feature management to your application.
4949
5050
Update the *Program.cs* file with the following code.
5151
@@ -75,7 +75,7 @@ In this section, you will create a web application that allows users to sign in
7575
// ... ...
7676
```
7777
78-
1. Call the `UseAzureAppConfiguration` method. It enables your app to use the App Configuration middleware to update the feature flag configuration for you automatically.
78+
1. Enable configuration and feature flag refresh from Azure App Configuration with the App Configuration middleware.
7979
8080
Update Program.cs withe the following code.
8181
@@ -199,36 +199,25 @@ The targeting filter evaluates a user's feature state based on the user's target
199199
200200
## Targeting filter in action
201201
202-
1. Build and run the web app. Initially, the **Beta** item doesn't appear on the toolbar, because the _Default percentage_ option is set to 0.
202+
1. Build and run the application. Initially, the **Beta** item doesn't appear on the toolbar, because the _Default percentage_ option is set to 0.
203203
204-
> [!div class="mx-imgBorder"]
205-
> ![User not logged in and Beta item not displayed](./media/feature-filters/beta-not-targeted-by-default.png)
204+
> [!div class="mx-imgBorder"]
205+
> ![User not logged in and Beta item not displayed](./media/feature-filters/beta-not-targeted-by-default.png)
206206
207-
1. Select the **Register** link in the upper right corner to create a new user account. Use an email address of `[email protected]`.
207+
1. Select the **Register** link in the upper right corner to create a new user account. Use an email address of `[email protected]`. On the **Register Confirmation** screen, select **Click here to confirm your account**.
208208
209-
> [!div class="mx-imgBorder"]
210-
> ![Register a new account](./media/feature-filters/register-a-new-account.png)
209+
1. Sign in as `[email protected]`, using the password you set when registering the account.
211210
212-
On the **Register Confirmation** screen, select **Click here to confirm your account**.
211+
The **Beta** item now appears on the toolbar, because `[email protected]` is specified as a targeted user.
213212
214-
> [!div class="mx-imgBorder"]
215-
> ![Register confirmation](./media/feature-filters/register-confirmation.png)
213+
> [!div class="mx-imgBorder"]
214+
> ![User logged in and Beta item displayed](./media/feature-filters/beta-targeted-by-user.png)
216215
217-
1. Now sign in as `test@contoso.com`, using the password you set when registering.
216+
Now sign in as `testuser@contoso.com`, using the password you set when registering the account. The **Beta** item doesn't appear on the toolbar, because `[email protected]` is specified as an excluded user.
218217
219-
> [!div class="mx-imgBorder"]
220-
> ![Login an account](./media/feature-filters/login-an-account.png)
218+
You can create more users with `@contoso.com` and `@contoso-xyz.com` email addresses to see the behavior of the group settings.
221219
222-
The **Beta** item now appears on the toolbar, because `[email protected]` is specified as a targeted user.
223-
224-
> [!div class="mx-imgBorder"]
225-
> ![User logged in and Beta item displayed](./media/feature-filters/beta-targeted-by-user.png)
226-
227-
Now sign in as `[email protected]`, using the password you set when registering. The **Beta** item doesn't appear on the toolbar, because `[email protected]` is specified as an excluded user.
228-
229-
You can create more users with `@contoso.com` and `@contoso-xyz.com` email addresses to see the behavior of the group settings.
230-
231-
Users with `contoso-xyz.com` email addresses won't see the **Beta** item. While 50% of users with `@contoso.com` email addresses will see the **Beta** item, the other 50% won't see the **Beta** item.
220+
Users with `contoso-xyz.com` email addresses won't see the **Beta** item. While 50% of users with `@contoso.com` email addresses will see the **Beta** item, the other 50% won't see the **Beta** item.
232221
233222
## Next steps
234223

articles/azure-app-configuration/howto-timewindow-filter-aspnet-core.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
2-
title: Enable features on a schedule in an ASP.NET Core app
2+
title: Enable features on a schedule in an ASP.NET Core application
33
titleSuffix: Azure App Configuration
4-
description: Learn how to enable feature flags on a schedule in an ASP.NET Core app.
4+
description: Learn how to enable feature flags on a schedule in an ASP.NET Core application.
55
ms.service: azure-app-configuration
66
ms.devlang: csharp
77
author: zhiyuanliang
@@ -10,21 +10,21 @@ ms.topic: how-to
1010
ms.date: 03/26/2024
1111
---
1212

13-
# Tutorial: Enable features on a schedule in an ASP.NET Core app
13+
# Tutorial: Enable features on a schedule in an ASP.NET Core application
1414

15-
In this tutorial, you use the time window filter to enable a feature on a schedule for an ASP.NET Core app.
15+
In this tutorial, you use the time window filter to enable a feature on a schedule for an ASP.NET Core application.
1616

17-
The example used in this tutorial is based on the ASP.NET Core app introduced in the feature management [quickstart](./quickstart-feature-flag-aspnet-core.md). Before proceeding further, complete the quickstart to create an ASP.NET Core app with a *Beta* feature flag. Once completed, you must [add a time window filter](./howto-timewindow-filter.md) to the *Beta* feature flag in your App Configuration store.
17+
The example used in this tutorial is based on the ASP.NET Core application introduced in the feature management [quickstart](./quickstart-feature-flag-aspnet-core.md). Before proceeding further, complete the quickstart to create an ASP.NET Core application with a *Beta* feature flag. Once completed, you must [add a time window filter](./howto-timewindow-filter.md) to the *Beta* feature flag in your App Configuration store.
1818

1919
## Prerequisites
2020

21-
- Create an [ASP.NET Core app with a feature flag](./quickstart-feature-flag-aspnet-core.md).
21+
- Create an [ASP.NET Core application with a feature flag](./quickstart-feature-flag-aspnet-core.md).
2222
- [Add a time window filter to the feature flag](./howto-timewindow-filter.md)
2323
- Update the [`Microsoft.FeatureManagement.AspNetCore`](https://www.nuget.org/packages/Microsoft.FeatureManagement.AspNetCore/) package to version **3.0.0** or later.
2424

2525
## Use the time window filter
2626

27-
You've added a time window filter for your *Beta* feature flag in the prerequisites. Next, you'll use the feature flag with the time window filter in your ASP.NET Core app.
27+
You've added a time window filter for your *Beta* feature flag in the prerequisites. Next, you'll use the feature flag with the time window filter in your ASP.NET Core application.
2828

2929
Starting with version *3.0.0* of `Microsoft.FeatureManagement`, the following [built-in filters](https://github.com/microsoft/FeatureManagement-Dotnet#built-in-feature-filters) are registered automatically as part of the `AddFeatureManagement` call. You don't need to add `TimeWindowFilter` manually.
3030

Binary file not shown.
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)