public static SynchronizerUnit GetByRepo(LocalRepository repo) { if (repo == null) return null; SynchronizerUnit unit; if (synchronizerUnits.TryGetValue (repo, out unit)) { return unit; } else { return null; } }