async Task SetNewGaps(TimeGaps gaps) { lock (sync) { this.gaps = gaps; } trace.Info("posting OnTimeGapsChanged event"); await modelSynchronizationContext.Invoke(() => OnTimeGapsChanged(this, EventArgs.Empty)); }
async Task SetNewGaps(TimeGaps gaps) { lock (sync) { this.gaps = gaps; } trace.Info("posting OnTimeGapsChanged event"); await syncInvoke.Invoke(() => OnTimeGapsChanged(this, EventArgs.Empty)); }