Flipt 0.0.2

dotnet add package Flipt --version 0.0.2                
NuGet\Install-Package Flipt -Version 0.0.2                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Flipt" Version="0.0.2" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Flipt --version 0.0.2                
#r "nuget: Flipt, 0.0.2"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Flipt as a Cake Addin
#addin nuget:?package=Flipt&version=0.0.2

// Install Flipt as a Cake Tool
#tool nuget:?package=Flipt&version=0.0.2                

Flipt C#

Nuget beta

This directory contains the C# source code for the Flipt server-side client.

Documentation

API documentation is available at https://www.flipt.io/docs/reference/overview.

Installation

dotnet add package Flipt --version 0.x.x

Usage

In your C# code you can import this client and use it as so:

using Flipt.Authentication;
using Flipt.DTOs;
using Flipt.Utilities;

namespace Flipt.Example;

public class Program
{
    public static async Task Main()
    {
        var fliptClient = FliptClient.Builder()
            .WithUrl("http://localhost:8080")
            .WithAuthentication(new ClientTokenAuthenticationStrategy("Client-Token"))
            .WithTimeout(30)
            .Build();

        Dictionary<string, string> context = new() { { "fizz", "buzz" } };

        var evaluation = fliptClient.Evaluation;

        var variantEvaluation = new EvaluationRequest("default", "flag1", "entity", context);
        var variantEvaluationResponse = await evaluation.EvaluateVariantAsync(variantEvaluation);

        var boolEvaluation = new EvaluationRequest("default", "bool_flag", "entity", context);
        var boolEvaluationResponse = await evaluation.EvaluateBooleanAsync(boolEvaluation);

        var list = new List<EvaluationRequest>
        {
            variantEvaluation,
            boolEvaluation
        };
        var batchEvaluationRequest = new BatchEvaluationRequest(list);
        var batchEvaluationResponse = await evaluation.EvaluateBatchAsync(batchEvaluationRequest);
    }
}
Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net8.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
0.0.2 506 8/14/2024
0.0.1 101 6/22/2024