Skip to content

Latest commit

 

History

History
25 lines (17 loc) · 1.03 KB

README.md

File metadata and controls

25 lines (17 loc) · 1.03 KB

FeatureFlag

==============

Simple Another Feature Flag (Feature Toggle / Feature Switch) for .NET - Connecting DataBase or inMemory

Now you can start toggling features;

  var features = FeatureFlag.Feature.GetConfiguration();
  if (features.IsAvailable("Feature01"))
  {
      // Do something
      var feature = features.GetFeature("Feature01");
      Console.WriteLine(feature.Name + ";" + feature.State.ToString() + ";" + feature.StartDate);            
  }

You can connection on database to access your features or use in memory

  FeatureFlag.Repository.FeatureFlagRepositoryDB repo = new FeatureFlag.Repository.FeatureFlagRepositoryDB();            
  FeatureFlag.IConfiguration features = FeatureFlag.Features.GetConfiguration(repo);

  FeatureFlag.Repository.FeatureFlagRepositoryFake repo = new FeatureFlag.Repository.FeatureFlagRepositoryFake();            
  FeatureFlag.IConfiguration features = FeatureFlag.Features.GetConfiguration(repo);

Please check your database connection in app.config