DEV Community

Discussion on: Learn to use and manage feature flags in .NET Core, locally and with Azure

Collapse
 
softchris profile image
Chris Noring

hi Matt. You don't have to stop/start. There's a configuration you can do so that it reads new values on the feature flag at a set interval. Here's the instruction for that:

var env = hostingContext.HostingEnvironment.EnvironmentName;
          config.AddAzureAppConfiguration(options =>
                  options.Connect(connection).UseFeatureFlags(opt =>
                  {
                    opt.Label = env;
                    opt.CacheExpirationInterval = TimeSpan.FromSeconds(5);
                  }));
Enter fullscreen mode Exit fullscreen mode