/// <summary>
 /// Gets the named source by name, returns false if the source is not found.
 /// </summary>
 /// <param name="name"></param>
 /// <param name="namedSource"></param>
 /// <returns></returns>
 public bool TryGetSource(string name, out NamedSource namedSource)
 {
     lock (Sync)
     {
         return(_namedSources.TryGetValue(name, out namedSource));
     }
 }
 /// <summary>
 /// Adds a new name source.
 /// </summary>
 /// <param name="namedSource"></param>
 public void AddSource(NamedSource namedSource)
 {
     lock (Sync)
     {
         _namedSources[namedSource.Name] = namedSource;
     }
 }