Exemplo n.º 1
0
 private async Task SetCachingPolicyConfig(params string[][] keyValues)
 {
     _configDic.Clear();
     foreach (var keyValue in keyValues)
     {
         var key   = keyValue[0];
         var value = keyValue[1];
         if (key != null && value != null)
         {
             _configDic[$"Discovery.Services.CachingTestService.CachingPolicy.{key}"] = value;
         }
     }
     _kernel.RaiseConfigChangeEvent();
     await Task.Delay(200);
 }