private async Task SynchronizeAsync(CancellationToken cancellationToken)
 {
     // The semaphore acts like queue.
     using (await _sempahore.WaitAsync(cancellationToken).ConfigureAwait(false))
     {
         SynchronizationStarted?.Invoke(this, EventArgs.Empty);
         SynchronizationCompleted?.Invoke(this, new SynchronizationResultEventArgs(true, true));
     }
 }
예제 #2
0
 private void RaiseSynchronizationCompleted(bool succeeded, bool requiresReloadLocalData)
 {
     SynchronizationCompleted?.Invoke(this, new SynchronizationResultEventArgs(succeeded, requiresReloadLocalData));
 }