Пример #1
0
 async Task SetNewGaps(TimeGaps gaps)
 {
     lock (sync)
     {
         this.gaps = gaps;
     }
     trace.Info("posting OnTimeGapsChanged event");
     await modelSynchronizationContext.Invoke(() => OnTimeGapsChanged(this, EventArgs.Empty));
 }
Пример #2
0
 async Task SetNewGaps(TimeGaps gaps)
 {
     lock (sync)
     {
         this.gaps = gaps;
     }
     trace.Info("posting OnTimeGapsChanged event");
     await syncInvoke.Invoke(() => OnTimeGapsChanged(this, EventArgs.Empty));
 }