public override SiteCollection GetSites()
        {
            InitializeSites();

            var sitesCollection = new SiteCollection();

            sitesCollection.AddRange(_sitesCollection);

            return sitesCollection;
        }
Ejemplo n.º 2
0
        /// <summary>
        /// The get sites.
        /// </summary>
        /// <returns>
        /// The <see cref="SiteCollection"/>.
        /// </returns>
        public override SiteCollection GetSites()
        {
            var list = new SiteCollection();
              foreach (SiteProvider provider in SiteManager.Providers)
              {
            if (provider != this)
            {
              list.AddRange(provider.GetSites() ?? new SiteCollection());
            }
              }

              return list;
        }