The OctopusDeploy .NET OpenFeature provider
Octopus Deploy is a sophisticated, best-of-breed continuous delivery (CD) platform for modern software teams. Octopus offers powerful release orchestration, deployment automation, and runbook automation, while handling the scale, complexity and governance expectations of even the largest organizations with the most complex deployment challenges.
This SDK is currently built for .NET 8.0, meaning it will run on .NET 8.0 and above.
If you require support for additional versions, please raise an issue.
dotnet add package OpenFeature
dotnet add package Octopus.OpenFeature
var clientIdentifier = Environment.GetEnvironmentVariable("Octopus__Features__ClientIdentifier");
var provider = new OctopusFeatureProvider(new OctopusFeatureConfiguration(clientIdentifier));
await OpenFeature.Api.Instance.SetProviderAsync(provider);
var client = OpenFeature.Api.Instance.GetClient();
if (await client.GetBooleanValue("to-the-moon-feature", false))
{
Console.WriteLine("🚀🚀🚀");
}
For information on using the OpenFeature client please refer to the OpenFeature Documentation.