Esempio n. 1
0
        void UpdateModSets(IContentManager contentList)
        {
            var modSets      = Collections.Where(x => Servers.Keys.Contains(x.ServerKey)).ToArray();
            var serversToAdd = Servers
                               .Where(x => !modSets.Select(y => y.ServerKey).Contains(x.Key))
                               .Select(s => contentList.CreateCustomRepoServerModSet(s.Value, s.Key, this));

            Collections = modSets.Concat(serversToAdd).ToArray();
        }