private static void CompleteTask() { if (Interlocked.Decrement(ref sOutstandingTasks) == 0) sCallbacks.CompleteAdding(); }