コード例 #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));
 }