⚠ Deprecated: Legacy
This library is now deprecated. The Dependency Injection library has been moved to the OpenFeature Hosting integration in version 2.9.0.
Suggested alternative: OpenFeature.Hosting
OpenFeature is an open standard for feature flag management, created to support a robust feature flag ecosystem using cloud native technologies. OpenFeature will provide a unified API and SDK, and a developer-first, cloud-native implementation, with extensibility for open source and commercial offerings.
$ dotnet add package OpenFeature.DependencyInjection⚠️ DEPRECATED: This library is now deprecated. The OpenTelemetry Dependency Injection library has been moved to the OpenFeature Hosting integration in version 2.9.0.
OpenFeature is an open standard for feature flag management, created to support a robust feature flag ecosystem using cloud native technologies. OpenFeature will provide a unified API and SDK, and a developer-first, cloud-native implementation, with extensibility for open source and commercial offerings.
If you are using OpenFeature.DependencyInjection, you should migrate to the OpenFeature.Hosting package. The hosting package provides the same functionality but in one package.
Remove this package:
<PackageReference Include="OpenFeature.DependencyInjection" Version="..." />
Update or install the latest OpenFeature.Hosting package:
<PackageReference Include="OpenFeature.Hosting" Version="2.9.0" />
Program.csRemove the AddHostedFeatureLifecycle method call.
builder.Services.AddOpenFeature(featureBuilder =>
{
featureBuilder
.AddHostedFeatureLifecycle();
// Omit for code brevity
});
builder.Services.AddOpenFeature(featureBuilder =>
{
// Omit for code brevity
});