public XmlSiteMapResult(
            int page,
            ISiteMapNode rootNode,
            IEnumerable <string> siteMapCacheKeys,
            string baseUrl,
            string siteMapUrlTemplate,
            ISiteMapLoader siteMapLoader,
            IUrlPath urlPath,
            ICultureContextFactory cultureContextFactory)
        {
            if (siteMapLoader == null)
            {
                throw new ArgumentNullException("siteMapLoader");
            }
            if (urlPath == null)
            {
                throw new ArgumentNullException("urlPath");
            }
            if (cultureContextFactory == null)
            {
                throw new ArgumentNullException("cultureContextFactory");
            }

            this.Ns                    = "http://www.sitemaps.org/schemas/sitemap/0.9";
            this.Page                  = page;
            this.RootNode              = rootNode;
            this.SiteMapCacheKeys      = siteMapCacheKeys;
            this.BaseUrl               = baseUrl;
            this.SiteMapUrlTemplate    = siteMapUrlTemplate;
            this.siteMapLoader         = siteMapLoader;
            this.urlPath               = urlPath;
            this.cultureContextFactory = cultureContextFactory;
        }
        public XmlSiteMapResult(
            int page,
            ISiteMapNode rootNode,
            IEnumerable<string> siteMapCacheKeys,
            string baseUrl,
            string siteMapUrlTemplate,
            ISiteMapLoader siteMapLoader,
            IUrlPath urlPath,
            ICultureContextFactory cultureContextFactory)
        {
            if (siteMapLoader == null)
                throw new ArgumentNullException("siteMapLoader");
            if (urlPath == null)
                throw new ArgumentNullException("urlPath");
            if (cultureContextFactory == null)
                throw new ArgumentNullException("cultureContextFactory");

            this.Ns = "http://www.sitemaps.org/schemas/sitemap/0.9";
            this.Page = page;
            this.RootNode = rootNode;
            this.SiteMapCacheKeys = siteMapCacheKeys;
            this.BaseUrl = baseUrl;
            this.SiteMapUrlTemplate = siteMapUrlTemplate;
            this.siteMapLoader = siteMapLoader;
            this.urlPath = urlPath;
            this.cultureContextFactory = cultureContextFactory;
        }
 public XmlSiteMapResultFactoryContainer(ConfigurationSettings settings)
 {
     var siteMapLoaderContainer = new SiteMapLoaderContainer(settings);
     this.siteMapLoader = siteMapLoaderContainer.ResolveSiteMapLoader();
     this.mvcContextFactory = new MvcContextFactory();
     this.bindingFactory = new BindingFactory();
     this.bindingProvider = new BindingProvider(this.bindingFactory, this.mvcContextFactory);
     this.urlPath = new UrlPath(this.mvcContextFactory, this.bindingProvider);
     this.cultureContextFactory = new CultureContextFactory();
 }
 public XmlSiteMapResultFactory(
     ISiteMapLoader siteMapLoader,
     IUrlPath urlPath
     )
 {
     if (siteMapLoader == null)
         throw new ArgumentNullException("siteMapLoader");
     if (urlPath == null)
         throw new ArgumentNullException("urlPath");
     this.siteMapLoader = siteMapLoader;
     this.urlPath = urlPath;
 }
Beispiel #5
0
 public XmlSiteMapResultFactory(
     ISiteMapLoader siteMapLoader,
     IUrlPath urlPath
     )
 {
     if (siteMapLoader == null)
     {
         throw new ArgumentNullException("siteMapLoader");
     }
     if (urlPath == null)
     {
         throw new ArgumentNullException("urlPath");
     }
     this.siteMapLoader = siteMapLoader;
     this.urlPath       = urlPath;
 }
        public XmlSiteMapResultFactory(
            ISiteMapLoader siteMapLoader,
            IUrlPath urlPath,
            ICultureContextFactory cultureContextFactory
            )
        {
            if (siteMapLoader == null)
                throw new ArgumentNullException("siteMapLoader");
            if (urlPath == null)
                throw new ArgumentNullException("urlPath");
            if (cultureContextFactory == null)
                throw new ArgumentNullException("cultureContextFactory");

            this.siteMapLoader = siteMapLoader;
            this.urlPath = urlPath;
            this.cultureContextFactory = cultureContextFactory;
        }
        public XmlSiteMapResult(
            int page,
            ISiteMapNode rootNode,
            IEnumerable<string> siteMapCacheKeys,
            string baseUrl,
            string siteMapUrlTemplate,
            ISiteMapLoader siteMapLoader)
        {
            if (siteMapLoader == null)
                throw new ArgumentNullException("siteMapLoader");

            this.Ns = "http://www.sitemaps.org/schemas/sitemap/0.9";
            this.Page = page;
            this.RootNode = rootNode;
            this.SiteMapCacheKeys = siteMapCacheKeys;
            this.BaseUrl = baseUrl;
            this.SiteMapUrlTemplate = siteMapUrlTemplate;
            this.siteMapLoader = siteMapLoader;
        }
Beispiel #8
0
        public XmlSiteMapResult(
            int page,
            ISiteMapNode rootNode,
            IEnumerable <string> siteMapCacheKeys,
            string baseUrl,
            string siteMapUrlTemplate,
            ISiteMapLoader siteMapLoader)
        {
            if (siteMapLoader == null)
            {
                throw new ArgumentNullException("siteMapLoader");
            }

            this.Ns                 = "http://www.sitemaps.org/schemas/sitemap/0.9";
            this.Page               = page;
            this.RootNode           = rootNode;
            this.SiteMapCacheKeys   = siteMapCacheKeys;
            this.BaseUrl            = baseUrl;
            this.SiteMapUrlTemplate = siteMapUrlTemplate;
            this.siteMapLoader      = siteMapLoader;
        }
        public XmlSiteMapResultFactory(
            ISiteMapLoader siteMapLoader,
            IUrlPath urlPath,
            ICultureContextFactory cultureContextFactory
            )
        {
            if (siteMapLoader == null)
            {
                throw new ArgumentNullException("siteMapLoader");
            }
            if (urlPath == null)
            {
                throw new ArgumentNullException("urlPath");
            }
            if (cultureContextFactory == null)
            {
                throw new ArgumentNullException("cultureContextFactory");
            }

            this.siteMapLoader         = siteMapLoader;
            this.urlPath               = urlPath;
            this.cultureContextFactory = cultureContextFactory;
        }
 public XmlSiteMapResultFactoryContainer(ConfigurationSettings settings)
 {
     var siteMapLoaderContainer = new SiteMapLoaderContainer(settings);
     this.siteMapLoader = siteMapLoaderContainer.ResolveSiteMapLoader();
     this.urlPath = new UrlPath(new MvcContextFactory());
 }