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 targets netstandard 2.0 for broad compatibility. You can review compatibility on Microsoft's website.
dotnet add package OpenFeature
dotnet add package Octopus.OpenFeature
var clientIdentifier = Environment.GetEnvironmentVariable("Octopus__Features__ClientIdentifier");
var provider = new OctopusFeatureProvider(new OctopusFeatureConfiguration(clientIdentifier, new ProductMetadata("MyProductName")));
await OpenFeature.Api.Instance.SetProviderAsync(provider);
var client = OpenFeature.Api.Instance.GetClient();
if (await client.GetBooleanValueAsync("to-the-moon-feature", false))
{
Console.WriteLine("🚀🚀🚀");
}For information on using the OpenFeature client please refer to the OpenFeature Documentation.