Microsoft.Extensions.DependencyInjection helpers for FeatureFlags.Client.
License
—
Deps
5
Install Size
—
Vulns
✓ 0
Published
Feb 20, 2026
$ dotnet add package FeatureFlags.Client.DependencyInjectionDI helpers for FeatureFlags.Client. The recommended way to use this service.
using FeatureFlags.Client.DependencyInjection;
services.AddFeatureFlagsClient(options =>
{
options.BaseAddress = new Uri("https://localhost:5001/api/");
options.ApiKey = "ffsk_...";
options.ApiVersion = new Version(1, 0); // optional - more versions may be added in the future, but 1.0 is the current default if not specified
});
services.AddFeatureFlagsClient(configuration, sectionName: "FeatureFlags");
Example config:
{
"FeatureFlags": {
"BaseAddress": "https://localhost:5001/api/",
"ApiKey": "ffsk_...",
"ApiVersion": "1.0",
"TimeoutSeconds": "2",
"EnableRetries": "true",
"MaxRetries": "3"
}
}