예제 #1
0
        public SiteMap(
            ISiteMapPluginProvider pluginProvider,
            IMvcContextFactory mvcContextFactory,
            ISiteMapChildStateFactory siteMapChildStateFactory,
            IUrlPath urlPath,
            ISiteMapSettings siteMapSettings
            )
        {
            if (pluginProvider == null)
                throw new ArgumentNullException("pluginProvider");
            if (mvcContextFactory == null)
                throw new ArgumentNullException("mvcContextFactory");
            if (siteMapChildStateFactory == null)
                throw new ArgumentNullException("siteMapChildStateFactory");
            if (urlPath == null)
                throw new ArgumentNullException("urlPath");
            if (siteMapSettings == null)
                throw new ArgumentNullException("siteMapSettings");

            this.pluginProvider = pluginProvider;
            this.mvcContextFactory = mvcContextFactory;
            this.siteMapChildStateFactory = siteMapChildStateFactory;
            this.urlPath = urlPath;
            this.siteMapSettings = siteMapSettings;

            // Initialize dictionaries
            this.childNodeCollectionTable = siteMapChildStateFactory.CreateChildNodeCollectionDictionary();
            this.keyTable = siteMapChildStateFactory.CreateKeyDictionary();
            this.parentNodeTable = siteMapChildStateFactory.CreateParentNodeDictionary();
            this.urlTable = siteMapChildStateFactory.CreateUrlDictionary();
        }
예제 #2
0
 public LockableSiteMap(
     ISiteMapPluginProvider pluginProvider,
     IMvcContextFactory mvcContextFactory,
     ISiteMapChildStateFactory siteMapChildStateFactory,
     IUrlPath urlPath,
     ISiteMapSettings siteMapSettings
     )
     : base(pluginProvider, mvcContextFactory, siteMapChildStateFactory, urlPath, siteMapSettings)
 {
 }
예제 #3
0
 public LockableSiteMap(
     ISiteMapPluginProvider pluginProvider,
     IMvcContextFactory mvcContextFactory,
     ISiteMapChildStateFactory siteMapChildStateFactory,
     IUrlPath urlPath,
     ISiteMapSettings siteMapSettings
     )
     : base(pluginProvider, mvcContextFactory, siteMapChildStateFactory, urlPath, siteMapSettings)
 {
 }
        public RequestCacheableSiteMap(
            ISiteMapPluginProvider pluginProvider,
            IMvcContextFactory mvcContextFactory,
            ISiteMapChildStateFactory siteMapChildStateFactory,
            IUrlPath urlPath,
            ISiteMapSettings siteMapSettings,
            IRequestCache requestCache
            )
            : base(pluginProvider, mvcContextFactory, siteMapChildStateFactory, urlPath, siteMapSettings)
        {
            if (requestCache == null)
                throw new ArgumentNullException("requestCache");

            this.requestCache = requestCache;
        }
예제 #5
0
        public RequestCacheableSiteMap(
            ISiteMapPluginProvider pluginProvider,
            IMvcContextFactory mvcContextFactory,
            ISiteMapChildStateFactory siteMapChildStateFactory,
            IUrlPath urlPath,
            ISiteMapSettings siteMapSettings,
            IRequestCache requestCache
            )
            : base(pluginProvider, mvcContextFactory, siteMapChildStateFactory, urlPath, siteMapSettings)
        {
            if (requestCache == null)
            {
                throw new ArgumentNullException("requestCache");
            }

            this.requestCache = requestCache;
        }
예제 #6
0
        public SiteMap(
            ISiteMapPluginProvider pluginProvider,
            IMvcContextFactory mvcContextFactory,
            ISiteMapChildStateFactory siteMapChildStateFactory,
            IUrlPath urlPath,
            ISiteMapSettings siteMapSettings
            )
        {
            if (pluginProvider == null)
            {
                throw new ArgumentNullException("pluginProvider");
            }
            if (mvcContextFactory == null)
            {
                throw new ArgumentNullException("mvcContextFactory");
            }
            if (siteMapChildStateFactory == null)
            {
                throw new ArgumentNullException("siteMapChildStateFactory");
            }
            if (urlPath == null)
            {
                throw new ArgumentNullException("urlPath");
            }
            if (siteMapSettings == null)
            {
                throw new ArgumentNullException("siteMapSettings");
            }

            this.pluginProvider           = pluginProvider;
            this.mvcContextFactory        = mvcContextFactory;
            this.siteMapChildStateFactory = siteMapChildStateFactory;
            this.urlPath         = urlPath;
            this.siteMapSettings = siteMapSettings;

            // Initialize dictionaries
            this.childNodeCollectionTable = siteMapChildStateFactory.CreateChildNodeCollectionDictionary();
            this.keyTable        = siteMapChildStateFactory.CreateKeyDictionary();
            this.parentNodeTable = siteMapChildStateFactory.CreateParentNodeDictionary();
            this.urlTable        = siteMapChildStateFactory.CreateUrlDictionary();
        }