Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Environment Variable Provider #312

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

MJRichardson
Copy link

Environment Variable Provider

This PR adds a provider that evaluates environment variables.

It will use the flag key as the name of the environment variable, but also provides the ability for a common prefix to be supplied when the provider is created.

            // If no prefix is required, the default constructor can be used, e.g.
            // var provider = new EnvVarProvider();
            var provider = new EnvVarProvider("FeatureToggles_");
            await OpenFeature.Api.Instance.SetProviderAsync(provider);

@MJRichardson MJRichardson requested review from a team as code owners February 6, 2025 02:47
Signed-off-by: Michael Richardson <[email protected]>
Signed-off-by: Michael Richardson <[email protected]>
Signed-off-by: Michael Richardson <[email protected]>
Signed-off-by: Michael Richardson <[email protected]>
Signed-off-by: Michael Richardson <[email protected]>
Signed-off-by: Michael Richardson <[email protected]>
@MJRichardson MJRichardson force-pushed the michrich/env-var-provider branch from 80a729c to 9cd7c02 Compare February 6, 2025 02:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant