Skip to content

Instantly share code, notes, and snippets.

@jskeet
Created July 26, 2022 14:51
Show Gist options
  • Select an option

  • Save jskeet/bd68551fb00a9bd2e959339686a199b1 to your computer and use it in GitHub Desktop.

Select an option

Save jskeet/bd68551fb00a9bd2e959339686a199b1 to your computer and use it in GitHub Desktop.
using Microsoft.FeatureManagement;
class Program
{
static void Main()
{
IFeatureManager featureManager = null;
if (featureManager.IsEnabledAsync(nameof(WidgetFeatureFlags.FeatureToggleABC)).Result)
{
Console.WriteLine("Running task with new toggle");
}
}
}
public enum WidgetFeatureFlags
{
FeatureToggleABC
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment