Esempio n. 1
0
 public bool Add(NuGetSource source)
 {
     if (SourceList.Any(m => m.Url == source.Url))
     {
         return(false);
     }
     SourceList.Add(source);
     return(true);
 }
Esempio n. 2
0
 public void AddOrUpdateSource(NuGetSource source)
 {
     Sources.RemoveAll(m => m.Url == source.Url);
     Sources.Add(source);
 }