![]() |
VOOZH | about |
dotnet add package FflagClient --version 0.7.0
NuGet\Install-Package FflagClient -Version 0.7.0
<PackageReference Include="FflagClient" Version="0.7.0" />
<PackageVersion Include="FflagClient" Version="0.7.0" />Directory.Packages.props
<PackageReference Include="FflagClient" />Project file
paket add FflagClient --version 0.7.0
#r "nuget: FflagClient, 0.7.0"
#:package FflagClient@0.7.0
#addin nuget:?package=FflagClient&version=0.7.0Install as a Cake Addin
#tool nuget:?package=FflagClient&version=0.7.0Install as a Cake Tool
This is a client-side C# client for FFlag. It evaluates requests right in the process on a client instead of making an HTTP call to FFlag every time a flag is requested. The benefit of it is a huge unmatched performance ( see benchmark)
dotnet add package FflagClient
var fflagUri = new Uri("http://localhost:9090");
builder.Services.AddFflagClient(fflagUri, options =>
{
options.UpdateIntervalInSeconds = 20; // default is 60 seconds
options.WatchedGroups.Add("this-app-name"); // at least one watched group is required
});
IFlagEvaluator flagEvaluator
flagEvaluator.GetBool(flagName); // just a flag name
flagEvaluator.GetBool(flagName, userId); // flag name and entityId
flagEvaluator.GetBool(flagName, userId, Parameters.Add(countryCode).Add(age)); // with parameters
// other methods are available. Call these depending on the type of a flag
flagEvaluator.GetDouble(...)
flagEvaluator.GetLong(...)
flagEvaluator.GetString(...)
The client has a background job that queries flag configurations from FFlag every UpdateIntervalInSeconds. The server
returns flags updated since the last time. The configuration is stored in memory.
FFlag can have thousands of flags defined in it, but it's rare that an app needs all of them. Usually, only a subset of
flags is queried from an app and the rest of the flags are meant for other apps.
To specify which flag configuration to keep in memory, provide a list of groups to which the flags should belong. A group is just a string that denotes a set of flags and is defined in FFlag UI. A flag can belong to multiple groups. A flag must have a group to be used in FflagClient.
A group can be a name of an app or a name of a UX flow if the flow goes through multiple services and is queried by all of them.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 net10.0 is compatible. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
This package is not used by any NuGet packages.
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.7.0 | 3,285 | 11/26/2025 |
| 0.4.1 | 1,142 | 10/1/2025 |
| 0.4.0 | 1,957 | 4/25/2025 |
| 0.3.6 | 3,144 | 10/18/2024 |
| 0.3.5 | 248 | 10/18/2024 |
| 0.3.4 | 157 | 10/7/2024 |
| 0.3.3 | 152 | 10/7/2024 |
| 0.3.2 | 177 | 10/7/2024 |
| 0.3.1 | 161 | 10/6/2024 |
| 0.3.0 | 167 | 10/6/2024 |
| 0.2.4 | 211 | 10/5/2024 |
| 0.2.3 | 173 | 10/5/2024 |
| 0.2.2 | 162 | 10/5/2024 |
| 0.2.1 | 161 | 10/5/2024 |
| 0.2.0 | 212 | 10/4/2024 |