Skip to content

Commit fc1db60

Browse files
authored
Acrolinx fixes
1 parent 6d1a333 commit fc1db60

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -759,13 +759,13 @@ Targeting is a feature management strategy that enables developers to progressiv
759759
The following steps demonstrate an example of a progressive rollout for a new 'Beta' feature:
760760

761761
1. Individual users Jeff and Alicia are granted access to the Beta
762-
2. Another user, Mark, asks to opt-in and is included.
762+
2. Another user, Mark, asks to opt in and is included.
763763
3. Twenty percent of a group known as "Ring1" users are included in the Beta.
764764
5. The number of "Ring1" users included in the beta is bumped up to 100 percent.
765765
5. Five percent of the user base is included in the beta.
766766
6. The rollout percentage is bumped up to 100 percent and the feature is completely rolled out.
767767

768-
This strategy for rolling out a feature is built-in to the library through the included [Microsoft.Targeting](#microsofttargeting) feature filter.
768+
This strategy for rolling out a feature is built into the library through the included [Microsoft.Targeting](#microsofttargeting) feature filter.
769769

770770
### Targeting in a Web Application
771771

@@ -793,7 +793,7 @@ services.AddFeatureManagement()
793793
794794
To use the `TargetingFilter` in a web application, an implementation of `ITargetingContextAccessor` is required. This requirement is because when a targeting evaluation is being performed, contextual information such as what user is currently being evaluated is needed. This information is known as the [`TargetingContext`](https://github.com/microsoft/FeatureManagement-Dotnet/blob/main/src/Microsoft.FeatureManagement/Targeting/TargetingContext.cs). Different applications may extract this information from different places. Some common examples of where an application may pull the targeting context are the request's HTTP context or a database.
795795

796-
An example that extracts targeting context information from the application's HTTP context is the [`DefaultHttpTargetingContextAccessor`](https://github.com/microsoft/FeatureManagement-Dotnet/blob/main/src/Microsoft.FeatureManagement.AspNetCore/DefaultHttpTargetingContextAccessor.cs) provided by the `Microsoft.FeatureManagement.AspNetCore` package. It will extract targeting info from `HttpContext.User`. `UserId` information will be extracted from from the `Identity.Name` field and `Groups` information will be extracted from claims of type [`Role`](/dotnet/api/system.security.claims.claimtypes.role). This implementation relies on the use of `IHttpContextAccessor`, which is discussed [here](#using-httpcontext).
796+
An example that extracts targeting context information from the application's HTTP context is the [`DefaultHttpTargetingContextAccessor`](https://github.com/microsoft/FeatureManagement-Dotnet/blob/main/src/Microsoft.FeatureManagement.AspNetCore/DefaultHttpTargetingContextAccessor.cs) provided by the `Microsoft.FeatureManagement.AspNetCore` package. It will extract targeting info from `HttpContext.User`. `UserId` information will be extracted from the `Identity.Name` field and `Groups` information will be extracted from claims of type [`Role`](/dotnet/api/system.security.claims.claimtypes.role). This implementation relies on the use of `IHttpContextAccessor`, which is discussed [here](#using-httpcontext).
797797
798798
### Targeting in a Console Application
799799
@@ -1206,7 +1206,7 @@ builder.services
12061206
> [!NOTE]
12071207
> To ensure Application Insights telemetry works as expected, the `TargetingHttpContextMiddleware` should be used.
12081208

1209-
To enable persistance of targeting context in the current activity, you can use the [`TargetingHttpContextMiddleware`](https://github.com/microsoft/FeatureManagement-Dotnet/blob/main/src/Microsoft.FeatureManagement.AspNetCore/TargetingHttpContextMiddleware.cs).
1209+
To enable persistence of targeting context in the current activity, you can use the [`TargetingHttpContextMiddleware`](https://github.com/microsoft/FeatureManagement-Dotnet/blob/main/src/Microsoft.FeatureManagement.AspNetCore/TargetingHttpContextMiddleware.cs).
12101210

12111211
``` C#
12121212
app.UseMiddleware<TargetingHttpContextMiddleware>();
@@ -1216,7 +1216,7 @@ An example of its usage can be found in the [VariantAndTelemetryDemo](https://gi
12161216

12171217
#### Prerequisite
12181218

1219-
This telemetry publisher depends on Application Insights already being setup registered as an application service. For example, that is done [here](https://github.com/microsoft/FeatureManagement-Dotnet/blob/main/examples/VariantAndTelemetryDemo/Program.cs#L22-L32) in the example application.
1219+
This telemetry publisher depends on Application Insights already being set up registered as an application service. For example, that is done [here](https://github.com/microsoft/FeatureManagement-Dotnet/blob/main/examples/VariantAndTelemetryDemo/Program.cs#L22-L32) in the example application.
12201220

12211221
This telemetry publisher depends on Application Insights already being [setup](/azure/azure-monitor/app/asp-net-core#enable-application-insights-server-side-telemetry-no-visual-studio) and registered as an application service.
12221222

0 commit comments

Comments
 (0)