Skip to content

Commit 6e884c2

Browse files
update
1 parent e55efdd commit 6e884c2

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

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

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -100,25 +100,12 @@ At this point, you can use the feature flag to enable or disable the `Beta` feat
100100

101101
1. Register `TargetingFilter` and `TestTargetingContextAccessor` created in the earlier step to the service collection. The `TargetingFilter` will use the `TestTargetingContextAccessor` to determine the targeting context every time that the feature flag is evaluated.
102102

103-
### [Microsoft.FeatureManagement.AspNetCore 3.0.0+](#tab/fm3x)
104-
105103
Since `Microsoft.FeatureManagement` 3.0.0, you can use `WithTargeting` method to register `TargetingFilter` and `ITargetingContextAccessor` at the same time.
106104

107105
```csharp
108106
services.AddFeatureManagement()
109107
.WithTargeting<TestTargetingContextAccessor>();
110108
```
111-
112-
### [Microsoft.FeatureManagement.AspNetCore 2.6.x](#tab/fm2x)
113-
114-
```csharp
115-
services.AddFeatureManagement()
116-
.AddFeatureFilter<TargetingFilter>();
117-
118-
services.AddSingleton<ITargetingContextAccessor, TestTargetingContextAccessor>();
119-
```
120-
121-
---
122109

123110
> [!NOTE]
124111
> For Blazor applications, see [instructions](./faq.yml#how-to-enable-feature-management-in-blazor-applications-or-as-scoped-services-in--net-applications) for enabling feature management as scoped services.

0 commit comments

Comments
 (0)