Skip to content

Deprecate OpenFeature.DependencyInjection #472

@kylejuliandev

Description

@kylejuliandev

The OpenFeature.Hosting project doesn't target the same frameworks as OpenFeature.DependencyInjection, which means users in .NET Framework cannot easily get started with the dependency injection initialization approach.

OpenFeature.Hosting only depends on Microsoft.Extensions.Hosting.Abstractions which does have support for .NET Framework 4.6.2 and .NET Standard 2.0.

Following: #472 (comment)

We should keep the Hosting package and deprecate the DI one. Let's also make sure the AddHosting is no longer required. The migration plan is:

  • Add Deprecation annotation to the .AddHostedFeatureLifecycle() and add note to the README
  • Move the code to the DependencyInjection package and do the hosting registration behind the scenes
  • Show deprecation notice on Nuget package
  • Remove old code but keeping a readme at the root of the hosting project with instructions on the migration

Metadata

Metadata

Assignees

Labels

Type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions