internal void AddCall(CacheUpdateEventArgs <object> args)
 {
     this.Calls++;
     this.Keys.Add(args.Key);
     this.Regions.Add(args.Region);
     this.Results.Add(args.Result);
 }
 void manager_OnRefreshCompleted(object sender, CacheUpdateEventArgs e)
 {
     Dispatcher.BeginInvoke(new Action(() => {
         txtSpeaker.Text = "All data synchronized.";
         txtSession.Text = string.Format("There are {0} speakers presenting {1} sessions. Press back to return to the conference start screen.", e.SpeakerCount, e.SessionCount);
     }));
 }
예제 #3
0
 internal void AddCall(CacheUpdateEventArgs <object> args, params string[] validKeys)
 {
     Guard.NotNullOrEmpty(validKeys, nameof(validKeys));
     if (validKeys.Contains(args.Key))
     {
         this.Calls++;
         this.Keys.Add(args.Key);
         if (!string.IsNullOrWhiteSpace(args.Region))
         {
             this.Regions.Add(args.Region);
         }
         this.Results.Add(args.Result);
     }
 }