Skip to content

This repository illustrates how to use the FeatureManagement nuget with custom, automatically refreshing configuration providers.

License

Notifications You must be signed in to change notification settings

mereta/feature-management-sandbox

 
 

Repository files navigation

readme

This repository illustrates how to use:

  • Feature Management
  • with a custom feature flags provider, samples include Redis and AWS App Config.
  • that also automatically refreshes itself

build & run

dotnet build
dotnet run

The code can be ran both locally and in a remote container.

usage

curl http://localhost:5000/helloworld

All flags refresh every second, so repeated runs of the command above will give different results.

Feature Flag Providers

In order to use all the providers in this project (Redis, AWS AppConfig) you need to have instances of both. Each is configured in the respective provider. We used a hosted AWS AppConfig instance and a local Redis instance. You can change the names of FF in the MyFeatureFlags class to match your own if needed. Redis Provider uses a pattern to fetch FF. That can be chnaged in the RedisFeatureFlagsProvider class, SearchPattern variable.

By default, both Redis & AppConfig providers are comented out in the FeatureManagementConfigurationExtensions class.

About

This repository illustrates how to use the FeatureManagement nuget with custom, automatically refreshing configuration providers.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 77.6%
  • Dockerfile 22.4%