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/howto-feature-filters-aspnet-core.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
---
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
3
3
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.
5
5
ms.service: azure-app-configuration
6
6
ms.devlang: csharp
7
7
ms.custom: devx-track-csharp
@@ -11,11 +11,11 @@ ms.topic: how-to
11
11
ms.date: 03/28/2024
12
12
---
13
13
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
15
15
16
16
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).
17
17
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.
19
19
20
20
In this tutorial, you'll learn how to implement a custom feature filter and use the feature filter to enable features conditionally.
Copy file name to clipboardExpand all lines: articles/azure-app-configuration/howto-targetingfilter-aspnet-core.md
+17-28Lines changed: 17 additions & 28 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
---
2
2
title: Roll out features to targeted audiences in an ASP.NET Core app
3
3
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.
5
5
ms.service: azure-app-configuration
6
6
ms.devlang: csharp
7
7
author: zhiyuanliang
@@ -10,9 +10,9 @@ ms.topic: how-to
10
10
ms.date: 03/26/2024
11
11
---
12
12
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
14
14
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).
16
16
17
17
## Prerequisites
18
18
@@ -23,7 +23,7 @@ In this tutorial, you'll use the targeting filter to roll out a feature to targe
23
23
24
24
## Create a web application with a feature flag
25
25
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.
27
27
28
28
1. Create a web application that authenticates against a local database using the following command.
29
29
@@ -45,7 +45,7 @@ In this section, you will create a web application that allows users to sign in
45
45
dotnet user-secrets set ConnectionStrings:AppConfig "<your_connection_string>"
46
46
```
47
47
48
-
1. Add Azure App Configuration and feature management to your app.
48
+
1. Add Azure App Configuration and feature management to your application.
49
49
50
50
Update the *Program.cs* file with the following code.
51
51
@@ -75,7 +75,7 @@ In this section, you will create a web application that allows users to sign in
75
75
// ... ...
76
76
```
77
77
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.
79
79
80
80
Update Program.cs withe the following code.
81
81
@@ -199,36 +199,25 @@ The targeting filter evaluates a user's feature state based on the user's target
199
199
200
200
## Targeting filter in action
201
201
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.
203
203
204
-
> [!div class="mx-imgBorder"]
205
-
> 
204
+
> [!div class="mx-imgBorder"]
205
+
> 
206
206
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**.
208
208
209
-
> [!div class="mx-imgBorder"]
210
-
> 
209
+
1. Sign in as `[email protected]`, using the password you set when registering the account.
211
210
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.
> 
216
215
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.
218
217
219
-
> [!div class="mx-imgBorder"]
220
-
> 
218
+
You can create more users with `@contoso.com` and `@contoso-xyz.com` email addresses to see the behavior of the group settings.
221
219
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
-
> 
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.
Copy file name to clipboardExpand all lines: articles/azure-app-configuration/howto-timewindow-filter-aspnet-core.md
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
---
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
3
3
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.
5
5
ms.service: azure-app-configuration
6
6
ms.devlang: csharp
7
7
author: zhiyuanliang
@@ -10,21 +10,21 @@ ms.topic: how-to
10
10
ms.date: 03/26/2024
11
11
---
12
12
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
14
14
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.
16
16
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.
18
18
19
19
## Prerequisites
20
20
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).
22
22
-[Add a time window filter to the feature flag](./howto-timewindow-filter.md)
23
23
- Update the [`Microsoft.FeatureManagement.AspNetCore`](https://www.nuget.org/packages/Microsoft.FeatureManagement.AspNetCore/) package to version **3.0.0** or later.
24
24
25
25
## Use the time window filter
26
26
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.
28
28
29
29
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.
0 commit comments