feat: Add multi-provider support#488
Merged
Merged
Conversation
…ure resolution Signed-off-by: André Silva <2493377+askpt@users.noreply.github.com>
…provider feature flag evaluation Signed-off-by: André Silva <2493377+askpt@users.noreply.github.com>
…ng evaluation strategy Signed-off-by: André Silva <2493377+askpt@users.noreply.github.com>
…Strategy classes for feature flag evaluation Signed-off-by: André Silva <2493377+askpt@users.noreply.github.com>
…pecific feature resolution Signed-off-by: André Silva <2493377+askpt@users.noreply.github.com>
…esolution Signed-off-by: André Silva <2493377+askpt@users.noreply.github.com>
…ulti-type feature resolution Signed-off-by: André Silva <2493377+askpt@users.noreply.github.com>
…hod for improved multi-provider support Signed-off-by: André Silva <2493377+askpt@users.noreply.github.com>
Signed-off-by: André Silva <2493377+askpt@users.noreply.github.com>
…gy to enhance multi-provider support Signed-off-by: André Silva <2493377+askpt@users.noreply.github.com>
…ovider evaluation logic Signed-off-by: André Silva <2493377+askpt@users.noreply.github.com>
…date multi-provider functionality Signed-off-by: André Silva <2493377+askpt@users.noreply.github.com>
…strategy delegation Signed-off-by: André Silva <2493377+askpt@users.noreply.github.com>
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #488 +/- ##
==========================================
+ Coverage 88.48% 89.67% +1.18%
==========================================
Files 50 64 +14
Lines 2102 2509 +407
Branches 245 296 +51
==========================================
+ Hits 1860 2250 +390
- Misses 191 199 +8
- Partials 51 60 +9 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Signed-off-by: André Silva <2493377+askpt@users.noreply.github.com>
…iders Signed-off-by: André Silva <2493377+askpt@users.noreply.github.com>
Signed-off-by: André Silva <2493377+askpt@users.noreply.github.com>
|
Do you have any idea when this will be implemented in the NuGet package? |
Member
Author
@sergheevxo I am actively working on #338, and this feature is next on my list. |
Signed-off-by: André Silva <2493377+askpt@users.noreply.github.com>
Signed-off-by: André Silva <2493377+askpt@users.noreply.github.com>
Signed-off-by: André Silva <2493377+askpt@users.noreply.github.com>
…h fallback and mismatch handling Signed-off-by: André Silva <2493377+askpt@users.noreply.github.com>
Signed-off-by: André Silva <2493377+askpt@users.noreply.github.com>
…ed clarity and consistency Signed-off-by: André Silva <2493377+askpt@users.noreply.github.com>
… to OpenFeature.Providers.MultiProvider Signed-off-by: André Silva <2493377+askpt@users.noreply.github.com>
Signed-off-by: André Silva <2493377+askpt@users.noreply.github.com>
This was referenced Feb 3, 2026
Closed
Closed
Closed
Open
Closed
This was referenced Apr 8, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR
This pull request introduces the experimental "Multi-Provider" feature to the OpenFeature library, enabling simultaneous use of multiple feature flag providers with configurable evaluation strategies. The changes include updates to documentation, new classes and methods to support multi-provider functionality, and a sample implementation in
AspNetCore. Below is a summary of the most important changes grouped by theme.Documentation Updates:
README.md, marking it as experimental.README.mdexplaining the usage, evaluation strategies, modes, and limitations of the Multi-Provider feature.Sample Implementation:
samples/AspNetCore/Program.csto demonstrate Multi-Provider usage, including flag evaluation and error handling. [1] [2]Core Multi-Provider Functionality:
MultiProviderclass insrc/OpenFeature/Providers/MultiProvider/MultiProvider.cs, implementing support for multiple providers, evaluation strategies, initialization, and shutdown logic.ProviderEntryclass to represent individual providers in the Multi-Provider configuration.Supporting Models and Extensions:
ProviderStatusandRegisteredProvidermodels to track provider states and metadata. [1] [2]ProviderExtensionsto handle evaluation logic for individual providers.Related Issues
Fixes #487
Notes
I didn't do proper testing for
HooksandEvents. This PR is already quite big, and I would appreciate some feedback on the overall design.Follow-up Tasks
How to test
Open the
samplesapp and enjoy!