public int GetTotalPendingTasks() { return pendingSynchronizations.Sum(queue => queue.Value.Count); }