1\. Install the SDK ```sh dotnet add package unleash.client // If you do not have a json library in your project: dotnet add package Newtonsoft.Json ``` 2\. Initialize Unleash ```csharp using Unleash; using Unleash.ClientFactory; public class Program { public static async Task Main() { var settings = new UnleashSettings() { AppName = "unleash-onboarding-dotnet", UnleashApi = new Uri(""), CustomHttpHeaders = new Dictionary() { {"Authorization",""} // in production use environment variable } }; var unleash = new DefaultUnleash(settings); while (true) { Console.WriteLine($"Flag is enabled: {unleash.IsEnabled("")}"); await Task.Delay(1000); } } } ``` --- ```csharp var settings = new UnleashSettings() { AppName = "unleash-onboarding-dotnet", UnleashApi = new Uri(""), CustomHttpHeaders = new Dictionary() { {"Authorization",Environment.GetEnvironmentVariable("UNLEASH_API_KEY")} } }; ``` --- - [SDK repository with documentation](https://github.com/Unleash/unleash-client-dotnet) - [.NET/C# SDK example with CodeSandbox](https://github.com/Unleash/unleash-sdk-examples/tree/main/Csharp)