OpenFeature Provider for .NET SDK
Integrate OpenFeature with Harness FME in your .NET applications to evaluate feature flags, manage contexts, and track events using a standardized SDK.
Integrate your .NET applications with Harness FME using the .NET OpenFeature Provider, a standardized, vendor-agnostic feature flagging API. This provider implements the OpenFeature specification and bridges the OpenFeature SDK with the Harness FME .NET SDK.
This page walks you through installing, configuring, and using the .NET OpenFeature provider to evaluate feature flags in your .NET applications.
Before you begin
Before you begin, ensure you have the following:
A valid Harness FME SDK key for your project
A .NET 6.0+ environment
Access to your project file to install NuGet dependencies
Version compatibility
.NET Runtime
6.0+
@splitsoftware/split-openfeature-provider-dotnet
≥ 1.0.0
OpenFeature .NET SDK
≥ 1.0.0
Install the provider and dependencies
Install the Harness FME OpenFeature provider from NuGet:
dotnet add package Splitio.OpenFeature.ProviderInitialize the provider
You can register the provider with OpenFeature by initializing using an SDK key directly or providing a pre-configured Split client.
If you are using an SDK API key:
If you are using a Split Factory:
Using a configured SplitFactory is recommended for production systems since it allows customization of timeouts, impressions mode, and additional behavior.
Construct an evaluation context
Provide an evaluation context with a targeting key to evaluate flags. The evaluation context passes targeting information such as user IDs, email addresses, or plan types for flag targeting.
For example:
If the same targeting key is reused across evaluations, set the context at the client level:
Or at the API level:
Once the context is set at the client or API level, you don't need to provide it for each evaluation.
For more information, go to the Harness FME .NET OpenFeature Provider GitHub repository.
Last updated
Was this helpful?