Skip to content

Commit 3a24c5c

Browse files
committed
Updated feature management package versions.
Removed unnecessary using. Fixed IsEnabled API call.
1 parent 78f8073 commit 3a24c5c

File tree

2 files changed

+3
-9
lines changed

2 files changed

+3
-9
lines changed

articles/azure-app-configuration/quickstart-feature-flag-aspnet-core.md

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,8 @@ Add the [Secret Manager tool](https://docs.microsoft.com/aspnet/core/security/ap
8282
1. Add reference to the `Microsoft.Azure.AppConfiguration.AspNetCore` and the `Microsoft.FeatureManagement.AspNetCore` NuGet packages by running the following commands:
8383

8484
```
85-
dotnet add package Microsoft.Azure.AppConfiguration.AspNetCore --version {tbd}
86-
dotnet add package Microsoft.FeatureManagement.AspNetCore --version {tbd}
85+
dotnet add package Microsoft.Azure.AppConfiguration.AspNetCore --version 3.0.0-preview-010560002-1165
86+
dotnet add package Microsoft.FeatureManagement.AspNetCore --version 2.0.0-preview-010610001-1263
8787
```
8888

8989
1. Run the following command to restore packages for your project:
@@ -106,12 +106,6 @@ Add the [Secret Manager tool](https://docs.microsoft.com/aspnet/core/security/ap
106106

107107
You can access this secret with the App Configuration API. A colon (:) works in the configuration name with the App Configuration API on all supported platforms. See [Configuration by environment](https://docs.microsoft.com/aspnet/core/fundamentals/configuration).
108108

109-
1. Open *Program.cs*, and add a reference to the .NET Core App Configuration provider:
110-
111-
```csharp
112-
using Microsoft.Extensions.Configuration.AzureAppConfiguration;
113-
```
114-
115109
1. Update the `CreateWebHostBuilder` method to use App Configuration by calling the `config.AddAzureAppConfiguration()` method.
116110

117111
> [!IMPORTANT]

articles/azure-app-configuration/use-feature-flags-dotnet-core.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ The basic pattern of feature management is to first check if a feature flag is s
175175
```csharp
176176
IFeatureManager featureManager;
177177
...
178-
if (await featureManager.IsEnabled(nameof(MyFeatureFlags.FeatureA)))
178+
if (await featureManager.IsEnabledAsync(nameof(MyFeatureFlags.FeatureA)))
179179
{
180180
// Run the following code
181181
}

0 commit comments

Comments
 (0)