Skip to content

Commit 75c79d2

Browse files
init
1 parent 0c1bfa9 commit 75c79d2

File tree

3 files changed

+720
-15
lines changed

3 files changed

+720
-15
lines changed

articles/azure-app-configuration/feature-management-dotnet-reference.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,11 @@ Here are some of the benefits of using .NET feature management library:
5454
The .NET feature management library is open source. For more information, visit the [GitHub repo](https://github.com/microsoft/FeatureManagement-Dotnet).
5555

5656
## Feature Flags
57+
5758
Feature flags are composed of two parts, a name and a list of feature-filters that are used to turn on the feature.
5859

5960
### Feature Filters
61+
6062
Feature filters define a scenario for when a feature should be enabled. When a feature is evaluated for whether it is on or off, its list of feature filters is traversed until one of the filters decides the feature should be enabled. At this point, the feature is considered enabled and traversal through the feature filters stops. If no feature filter indicates that the feature should be enabled, it's considered disabled.
6163

6264
As an example, a Microsoft Edge browser feature filter could be designed. This feature filter would activate any features it's attached to as long as an HTTP request is coming from Microsoft Edge.
@@ -246,7 +248,7 @@ The `feature_management` section of the json document is used by convention to l
246248

247249
**Advanced:** The usage of colon ':' is forbidden in feature flag names.
248250

249-
#### RequirementType
251+
#### Requirement type
250252

251253
The `requirement_type` property of `conditions` is used to determine if the filters should use `Any` or `All` logic when evaluating the state of a feature. If `requirement_type` isn't specified, the default value is `Any`.
252254

@@ -1031,7 +1033,7 @@ When defining an Audience, users and groups can be excluded from the audience. T
10311033
"RolloutPercentage": 100
10321034
}
10331035
],
1034-
"DefaultRolloutPercentage": 0
1036+
"DefaultRolloutPercentage": 0,
10351037
"Exclusion": {
10361038
"Users": [
10371039
"Mark"
@@ -1073,7 +1075,7 @@ For each feature, a variant can be retrieved using the `IVariantFeatureManager`'
10731075
10741076
IVariantFeatureManager featureManager;
10751077
1076-
Variant variant = await featureManager.GetVariantAsync(MyFeatureFlags.FeatureU, CancellationToken.None);
1078+
Variant variant = await featureManager.GetVariantAsync("MyVariantFeatureFlag", CancellationToken.None);
10771079
10781080
IConfigurationSection variantConfiguration = variant.Configuration;
10791081
@@ -1380,8 +1382,6 @@ ActivitySource.AddActivityListener(new ActivityListener()
13801382

13811383
For more information, please go to [Collect a distributed trace](/dotnet/core/diagnostics/distributed-tracing-collection-walkthroughs).
13821384

1383-
1384-
13851385
### Application Insights Telemetry Publisher
13861386

13871387
The `Microsoft.FeatureManagement.Telemetry.ApplicationInsights` package provides a built-in telemetry publisher that sends feature flag evaluation data to [Application Insights](/azure/azure-monitor/app/app-insights-overview). To take advantage of this, add a reference to the package and register the Application Insights telemetry publisher as shown below.
@@ -1472,4 +1472,4 @@ To learn how to use feature filters, continue to the following tutorials.
14721472
To learn how to run experiments with variant feature flags, continue to the following tutorial.
14731473
14741474
> [!div class="nextstepaction"]
1475-
> [Run experiments with variant feature flags](./howto-feature-filters.md)
1475+
> [Run experiments with variant feature flags](./run-experiments-aspnet-core.md)

0 commit comments

Comments
 (0)