PrimusSaaS.FeatureFlags.AzureAppConfiguration
1.0.1
dotnet add package PrimusSaaS.FeatureFlags.AzureAppConfiguration --version 1.0.1
NuGet\Install-Package PrimusSaaS.FeatureFlags.AzureAppConfiguration -Version 1.0.1
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="PrimusSaaS.FeatureFlags.AzureAppConfiguration" Version="1.0.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="PrimusSaaS.FeatureFlags.AzureAppConfiguration" Version="1.0.1" />
<PackageReference Include="PrimusSaaS.FeatureFlags.AzureAppConfiguration" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add PrimusSaaS.FeatureFlags.AzureAppConfiguration --version 1.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: PrimusSaaS.FeatureFlags.AzureAppConfiguration, 1.0.1"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package PrimusSaaS.FeatureFlags.AzureAppConfiguration@1.0.1
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=PrimusSaaS.FeatureFlags.AzureAppConfiguration&version=1.0.1
#tool nuget:?package=PrimusSaaS.FeatureFlags.AzureAppConfiguration&version=1.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
PrimusSaaS.FeatureFlags.AzureAppConfiguration
Azure App Configuration provider for PrimusSaaS.FeatureFlags.
Reads feature flags from Azure App Configuration with thread-safe in-process caching and on-demand refresh.
Installation
dotnet add package PrimusSaaS.FeatureFlags.AzureAppConfiguration
Quick Start
// Program.cs
builder.Services.AddPrimusFeatureFlags(opts =>
{
opts.Provider = FeatureFlagProvider.AzureAppConfiguration;
opts.AzureAppConfigConnectionString = builder.Configuration["AzureAppConfig:ConnectionString"];
opts.CacheDurationSeconds = 30;
}).UsePrimusAzureAppConfiguration();
Or with Managed Identity (no connection string needed):
builder.Services.AddPrimusFeatureFlags(opts =>
{
opts.Provider = FeatureFlagProvider.AzureAppConfiguration;
opts.AzureAppConfigEndpoint = "https://my-config.azconfig.io";
}).UsePrimusAzureAppConfiguration();
Configuration
| Option | Type | Default | Description |
|---|---|---|---|
AzureAppConfigConnectionString |
string? |
null |
Connection string from Azure portal |
AzureAppConfigEndpoint |
string? |
null |
Endpoint URL (uses DefaultAzureCredential) |
AzureAppConfigLabel |
string? |
null |
Label filter for flag entries |
CacheDurationSeconds |
int |
30 |
How long flag values are cached locally |
How It Works
The provider reads feature flags from the .appconfig.featureflag/ namespace in IConfiguration. Flags are cached in-process for CacheDurationSeconds seconds. All reads are thread-safe (double-checked locking). Call RefreshAsync() to force an immediate reload.
Prerequisites
- An Azure App Configuration store with feature flags enabled
- Either a connection string or a correctly scoped managed identity
Microsoft.Extensions.Configuration.AzureAppConfigurationwired inProgram.cs
See Also
- PrimusSaaS.FeatureFlags — base package
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net10.0
- Microsoft.Extensions.Configuration.AzureAppConfiguration (>= 8.1.0)
- Microsoft.FeatureManagement.AspNetCore (>= 4.0.0)
- PrimusSaaS.FeatureFlags (>= 2.0.1)
-
net8.0
- Microsoft.Extensions.Configuration.AzureAppConfiguration (>= 8.1.0)
- Microsoft.FeatureManagement.AspNetCore (>= 4.0.0)
- PrimusSaaS.FeatureFlags (>= 2.0.1)
-
net9.0
- Microsoft.Extensions.Configuration.AzureAppConfiguration (>= 8.1.0)
- Microsoft.FeatureManagement.AspNetCore (>= 4.0.0)
- PrimusSaaS.FeatureFlags (>= 2.0.1)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.0.1 | 97 | 4/19/2026 |