1. Install the SDK
dotnet add package Tggl
2. Create the client
using Tggl;
var client = new TgglClient("YOUR_API_KEY");
3. Start using feature flags
var flags = await client.EvalContextAsync(new
{
UserId = "foo",
Email = "foo@gmail.com"
});
if (flags.GetBoolean("my-feature", true))
{
Console.WriteLine("Feature is active");
}
You can work with the API or choose to do local flag evaluation to evaluate millions of flags per second. The SDK also supports live configuration updates.