FeatureFlags.Client 1.0.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package FeatureFlags.Client --version 1.0.0
                    
NuGet\Install-Package FeatureFlags.Client -Version 1.0.0
                    
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="FeatureFlags.Client" Version="1.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="FeatureFlags.Client" Version="1.0.0" />
                    
Directory.Packages.props
<PackageReference Include="FeatureFlags.Client" />
                    
Project file
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 FeatureFlags.Client --version 1.0.0
                    
#r "nuget: FeatureFlags.Client, 1.0.0"
                    
#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 FeatureFlags.Client@1.0.0
                    
#: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=FeatureFlags.Client&version=1.0.0
                    
Install as a Cake Addin
#tool nuget:?package=FeatureFlags.Client&version=1.0.0
                    
Install as a Cake Tool

FeatureFlags.Client

Minimal .NET client SDK for the Feature Flags Service. There is also a thin FeatureFlagsClientFactory layer to avoid creating a new HttpClient and client instance every time you want to evaluate a flag, which is the recommended way to use the client without the DependencyInjection companion package.

Evaluation (runtime)

using FeatureFlags.Client;

var http = new HttpClient();
var client = new FeatureFlagsClient(http, new FeatureFlagsClientOptions
{
    BaseAddress = new Uri("https://localhost:5001/api/"),
    ApiKey = "ffsk_..."
});

var result = await client.EvaluateAsync("my-flag", new EvaluationContext { UserId = "123" });
Console.WriteLine(result.Allowed);

With factory:

using FeatureFlags.Client;

var client = new FeatureFlagsClientFactory.Create(new FeatureFlagsClientOptions
{
    BaseAddress = new Uri("https://localhost:5001/api/"),
    ApiKey = "ffsk_..."
});

var result = await client.EvaluateAsync("my-flag", new EvaluationContext { UserId = "123" });
Console.WriteLine(result.Allowed);

DI registration

Install/use the companion package FeatureFlags.Client.DependencyInjection and register:

services.AddFeatureFlagsClient(options =>
{
    options.BaseAddress = new Uri("https://localhost:5001/api/");
    options.ApiKey = "ffsk_...";
    options.ApiVersion = new Version(1, 0); // optional
});

This is the recommended way to use the client. You can then inject IFeatureFlagsClient wherever you need it.

Product Compatible and additional computed target framework versions.
.NET 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.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on FeatureFlags.Client:

Package Downloads
FeatureFlags.Client.DependencyInjection

Microsoft.Extensions.DependencyInjection helpers for FeatureFlags.Client.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.2 92 2/20/2026
1.0.1 102 2/12/2026
1.0.0 110 2/11/2026 1.0.0 is deprecated because it has critical bugs.