Skip to content

EsbenSkovPedersen/.net-client

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LaunchDarkly SDK for .NET

Build status

Quick setup

  1. Use NuGet to add the .NET SDK to your project:

     Install-Package LaunchDarkly.Client
    
  2. Import the LaunchDarkly package:

     using LaunchDarkly.Client;
    
  3. Create a new LDClient with your SDK key:

     LdClient ldClient = new LdClient("YOUR_SDK_KEY");
    

Your first feature flag

  1. Create a new feature flag on your dashboard.

  2. In your application code, use the feature's key to check whether the flag is on for each user:

     User user = User.WithKey(username);
     bool showFeature = ldClient.toggle("your.feature.key", user, false);
     if (showFeature) {
       // application code to show the feature 
     }
     else {
       // the code to run if the feature is off
     }
    

Learn more

Check out our documentation for in-depth instructions on configuring and using LaunchDarkly. You can also head straight to the complete reference guide for this SDK.

Testing

We run integration tests for all our SDKs using a centralized test harness. This approach gives us the ability to test for consistency across SDKs, as well as test networking behavior in a long-running application. These tests cover each method in the SDK, and verify that event sending, flag evaluation, stream reconnection, and other aspects of the SDK all behave correctly.

Contributing

See Contributing.

About LaunchDarkly

About

LaunchDarkly SDK for .Net

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C# 100.0%