ConfigCat.Client 6.4.8

There is a newer version of this package available.
See the version list below for details.
dotnet add package ConfigCat.Client --version 6.4.8
NuGet\Install-Package ConfigCat.Client -Version 6.4.8
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="ConfigCat.Client" Version="6.4.8" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add ConfigCat.Client --version 6.4.8
#r "nuget: ConfigCat.Client, 6.4.8"
#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.
// Install ConfigCat.Client as a Cake Addin
#addin nuget:?package=ConfigCat.Client&version=6.4.8

// Install ConfigCat.Client as a Cake Tool
#tool nuget:?package=ConfigCat.Client&version=6.4.8

ConfigCat SDK for .NET

Supported frameworks:

  • .NET Core
  • .NET Framework
  • Xamarin
  • .NET Standard

https://configcat.com

ConfigCat SDK for .NET provides easy integration for your application to ConfigCat.

ConfigCat is a feature flag and configuration management service that lets you separate releases from deployments. You can turn your features ON/OFF using ConfigCat Dashboard even after they are deployed. ConfigCat lets you target specific groups of users based on region, email or any other custom user attribute.

ConfigCat is a hosted feature flag service. Manage feature toggles across frontend, backend, mobile, desktop apps. Alternative to LaunchDarkly. Management app + feature flag SDKs.

Build status NuGet Version Sonar Coverage Quality Gate Status License: MIT

Getting Started

1. Install the package with NuGet

Install-Package ConfigCat.Client

or

dotnet add package ConfigCat.Client

2. Import ConfigCat.Client to your application

using ConfigCat.Client;

3. Go to the ConfigCat Dashboard to get your SDK Key:

SDK-KEY

4. Create a ConfigCat client instance:

var client = new ConfigCatClient("#YOUR-SDK-KEY#");

We strongly recommend using the ConfigCat Client as a Singleton object in your application.

5. Get your setting value:

var isMyAwesomeFeatureEnabled = client.GetValue("isMyAwesomeFeatureEnabled", false);

if(isMyAwesomeFeatureEnabled)
{
    doTheNewThing();
}
else
{
    doTheOldThing();
}

6. On application exit:

client.Dispose();

To ensure graceful shutdown of the client you should invoke .Dispose() method. (Client implements IDisposable interface)

Getting user specific setting values with Targeting

Using this feature, you will be able to get different setting values for different users in your application by passing a User Object to the GetValue() function.

Read more about Targeting here.

User currentUser = new User("435170f4-8a8b-4b67-a723-505ac7cdea92");

var isMyAwesomeFeatureEnabled = client.GetValue(
	"isMyAwesomeFeatureEnabled",
	defaultValue: false,
	user: currentUser);

Sample/Demo apps

Polling Modes

The ConfigCat SDK supports 3 different polling mechanisms to acquire the setting values from ConfigCat. After latest setting values are downloaded, they are stored in the internal cache then all requests are served from there. Read more about Polling Modes and how to use them at ConfigCat Docs.

Need help?

https://configcat.com/support

Contributing

Contributions are welcome. For more info please read the Contribution Guideline.

About ConfigCat

Product Compatible and additional computed target framework versions.
.NET net5.0 is compatible.  net5.0-windows was computed.  net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  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. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 is compatible. 
.NET Framework net45 is compatible.  net451 was computed.  net452 was computed.  net46 was computed.  net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (7)

Showing the top 5 NuGet packages that depend on ConfigCat.Client:

Package Downloads
Musement.Extensions.Configuration.ConfigCat

A .NET configuration provider for ConfigCat

Codelux

Codelux is a collection of tools that simplify and abstract processes such as dependency injection, caching, configuration, mapping etc. Codelux.ServiceStack includes various ServiceStack helper libraries that make OrmLite model mapping, dependency injection and bootstrapping simple, elegant and clean. Additionally, Codelux.Plugins provides a base plugin framework for a pluggable architecture design.

Xamarin.Security

Add your app security control by using cloud's feature flags

XamarinSecurityTest

Add your app security control by using cloud's feature flags

TestNugetXamSecurLibrary

Package Description

GitHub repositories (1)

Showing the top 1 popular GitHub repositories that depend on ConfigCat.Client:

Repository Stars
VladislavAntonyuk/MauiSamples
.NET MAUI Samples
Version Downloads Last updated
9.1.0 2,721 3/21/2024
9.0.1 93,452 1/9/2024
9.0.0 58,545 11/21/2023
8.2.0 262,882 7/26/2023
8.1.1 51,020 6/23/2023
8.1.0 15,786 6/12/2023
8.0.0 16,291 5/26/2023
7.2.0 332,651 1/11/2023
7.1.0 34,912 12/16/2022
7.0.0 87,228 11/10/2022
6.5.3 158,490 9/7/2022
6.5.2 57,377 8/5/2022
6.5.1 318,944 4/7/2022
6.5.0 3,607 4/6/2022
6.4.12 992 4/4/2022
6.4.9 14,694 3/4/2022
6.4.8 874 3/3/2022
6.4.7 882 3/3/2022
6.4.6 871 3/3/2022
6.4.3 869 3/3/2022
6.4.0 921 3/3/2022
6.2.1 116,090 9/20/2021
6.1.20 8,177 9/8/2021
6.1.0 481,199 1/7/2021
6.0.47 1,076 1/7/2021
6.0.0 33,209 10/12/2020
5.3.77 29,490 9/1/2020
5.2.58 34,073 7/2/2020
5.1.53 58,370 4/19/2020
5.0.39 2,465 4/9/2020
4.0.36 21,879 2/27/2020
3.2.28 43,837 1/15/2020
3.1.23 1,243 12/28/2019
3.0.19 2,493 11/25/2019
2.5.6 23,232 9/9/2019
2.5.3 1,151 8/8/2019
2.4.0 1,774 7/27/2019
2.3.0 1,194 7/19/2019
2.2.2 1,175 7/14/2019
2.2.1 50,860 4/9/2019
2.1.4 1,364 11/26/2018
2.1.3 1,215 11/21/2018
2.1.0 1,273 11/9/2018
2.0.1 1,398 10/23/2018
2.0.0 1,271 10/9/2018
1.1.6 1,469 5/9/2018
1.1.5 1,487 4/26/2018
1.1.3 1,502 4/17/2018
1.1.2 1,770 4/8/2018