Giter VIP home page Giter VIP logo

hello-openfeature-dotnet-server's Introduction

LaunchDarkly Sample OpenFeature .Net Server application

We've built a simple console that demonstrates how LaunchDarkly's OpenFeature provider works.

Build instructions

This is a .NET Core application that can be built on any platform where .NET is available. It can be run either in Visual Studio, or from the command line if you have installed the .NET command-line tools.

  1. Edit HelloOpenFeatureDotnet/Hello.cs and set the value of SdkKey to your LaunchDarkly SDK key. If there is an existing boolean feature flag in your LaunchDarkly project that you want to evaluate, set FeatureFlagKey to the flag key.
    private const string SdkKey = "1234567890abcdef";

    private const string FeatureFlagKey = "my-flag";
  1. If you are using Visual Studio, open HelloDotNet.sln and run the application. Or, to run from the command line, type the following command:
     dotnet run --project HelloOpenFeatureDotnet/HelloOpenFeatureDotnet.csproj --framework net6.0

You should see the message "Feature flag '<flag key>' is <true/false> for this user".

hello-openfeature-dotnet-server's People

Contributors

kinyoklion avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.