public void SyncComplete(bool syncFull) { lock (syncLock) { try { repo.OnSyncComplete(syncFull); } finally { autoResetEvent.Set(); } } }