public void OnProgress() { lock (ProgressLock) { CompletedOperations++; } OnProgress(new ProgressArgs(CompletedOperations, TotalOperations)); }