Пример #1
0
 public static async Task Watch(AppconfiManager manager)
 {
     while (true)
     {
         var status = manager.IsFeatureEnabled("new_feature", new User("123")
         {
             { "country", "MX" }
         });
         Console.WriteLine($"is_enabled: {status.ToString().ToLower()}");
         manager.ForceRefresh();
         await Task.Delay(5000);
     }
 }
Пример #2
0
 public void ForceRefresh()
 {
     manager.ForceRefresh();
 }