ConfigDirector.OpenFeature.ServerProvider 1.1.0

dotnet add package ConfigDirector.OpenFeature.ServerProvider --version 1.1.0
                    
NuGet\Install-Package ConfigDirector.OpenFeature.ServerProvider -Version 1.1.0
                    
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="ConfigDirector.OpenFeature.ServerProvider" Version="1.1.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="ConfigDirector.OpenFeature.ServerProvider" Version="1.1.0" />
                    
Directory.Packages.props
<PackageReference Include="ConfigDirector.OpenFeature.ServerProvider" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add ConfigDirector.OpenFeature.ServerProvider --version 1.1.0
                    
#r "nuget: ConfigDirector.OpenFeature.ServerProvider, 1.1.0"
                    
#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.
#:package ConfigDirector.OpenFeature.ServerProvider@1.1.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=ConfigDirector.OpenFeature.ServerProvider&version=1.1.0
                    
Install as a Cake Addin
#tool nuget:?package=ConfigDirector.OpenFeature.ServerProvider&version=1.1.0
                    
Install as a Cake Tool

ConfigDirector OpenFeature .NET Server Provider

OpenFeature server provider for ConfigDirector, published to NuGet as ConfigDirector.OpenFeature.ServerProvider. It wraps the ConfigDirector .NET server SDK and targets netstandard2.0 and net8.0.

Installation

dotnet add package ConfigDirector.OpenFeature.ServerProvider

The OpenFeature .NET SDK (OpenFeature) and the ConfigDirector .NET server SDK come with it as dependencies.

Retrieve a value

using ConfigDirector.OpenFeature;
using OpenFeature;

// The server SDK key is a secret. Do not commit it to your source code.
await Api.Instance.SetProviderAsync(new ConfigDirectorProvider("YOUR-SERVER-SDK-KEY"));
var client = Api.Instance.GetClient();

var newCheckout = await client.GetBooleanValueAsync("new-checkout", false);

The provider owns its ConfigDirector client: it connects when OpenFeature initializes the provider, and closes when OpenFeature shuts it down. Targeting rules are evaluated locally, so an evaluation makes no network calls.

Settings

The second constructor argument takes the same ConfigDirectorClientOptions a ConfigDirectorClient accepts:

new ConfigDirectorProvider("YOUR-SERVER-SDK-KEY", new ConfigDirectorClientOptions
{
    Metadata = new Metadata { AppName = "checkout", AppVersion = "1.2.3" },
    LoggerFactory = loggerFactory,
    Connection = { Mode = ConnectionMode.Polling },
});

The evaluation context

An OpenFeature evaluation context maps onto the ConfigDirector context that targeting rules are evaluated against:

OpenFeature ConfigDirector
targeting key, or failing that an id attribute Id
name Name
traits, a structure Traits
anonymous, a boolean Anonymous
var context = EvaluationContext.Builder()
    .SetTargetingKey("user-1")
    .Set("name", "Ada Lovelace")
    .Set("traits", Structure.Builder().Set("plan", "pro").Build())
    .Build();

var newCheckout = await client.GetBooleanValueAsync("new-checkout", false, context);

Resolution details

A match reports the reason TARGETING_MATCH with the ConfigDirector value id as the variant. A config the server does not know reports FLAG_NOT_FOUND, a value that does not match the requested type reports TYPE_MISMATCH, and an evaluation made before the first config state has arrived reports PROVIDER_NOT_READY. In every error case the default you passed is returned.

Events

The provider emits PROVIDER_CONFIGURATION_CHANGED with the keys each update carried. If the first config state does not arrive within the configured timeout, initialization still completes and the provider emits PROVIDER_READY once it does.

Dependency injection

With the OpenFeature.Hosting package, register the provider through the OpenFeature builder:

builder.Services.AddOpenFeature(openFeature =>
    openFeature.AddProvider(_ => new ConfigDirectorProvider(serverSdkKey)));

The hosted lifecycle that AddOpenFeature registers initializes the provider as the host starts, which connects the client before the server listens, and shuts it down as the host stops. Take IFeatureClient, and Api if you need it, from the container: AddOpenFeature drives its own Api instance, so the static Api.Instance is not the one your provider is registered with.

Documentation

Refer to the official documentation for the OpenFeature .NET provider.

What changed in each release is in the changelog.

Getting Help

Reach out to us via https://www.configdirector.com/support

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  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.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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
1.1.0 0 9/23/2026
1.0.1 34 9/23/2026
1.0.0 39 9/22/2026