Client vs. Server
These docs are for using our .NET SDK in a multi-user, server side context. For client side and single-user contexts, try our client .NET SDK
This SDK is written in C#, and is open source and hosted on github.
Get started in a few quick steps.
You could skip this for now, but you will need an SDK Key and some Feature Gates or Dynamic Configs to use with the SDK in just a minute.
The package is hosted on Nuget. You can either install it from your Visual Studio's Nuget package manager, or through .NET CLI:
Initialize the SDK using a Server Secret Key from the statsig console:
Most SDK APIs run synchronously, so why are
The main reason is that older versions of the SDK might not know how to interpret new types of gate conditions. In such cases the SDK will make an asynchronous call to our servers to fetch the result of a check. This can be resolved by upgrading the SDK, and we will warn you if this happens.
For more information, see our SDK documentation on github.