コード例 #1
0
        public SiteMapFactory(
            ISiteMapPluginProviderFactory pluginProviderFactory,
            IMvcResolverFactory mvcResolverFactory,
            IMvcContextFactory mvcContextFactory,
            ISiteMapChildStateFactory siteMapChildStateFactory,
            IUrlPath urlPath,
            IControllerTypeResolverFactory controllerTypeResolverFactory,
            IActionMethodParameterResolverFactory actionMethodParameterResolverFactory
            )
        {
            if (pluginProviderFactory == null)
                throw new ArgumentNullException("pluginProviderFactory");
            if (mvcResolverFactory == null)
                throw new ArgumentNullException("mvcResolverFactory");
            if (mvcContextFactory == null)
                throw new ArgumentNullException("mvcContextFactory");
            if (siteMapChildStateFactory == null)
                throw new ArgumentNullException("siteMapChildStateFactory");
            if (urlPath == null)
                throw new ArgumentNullException("urlPath");
            if (controllerTypeResolverFactory == null)
                throw new ArgumentNullException("controllerTypeResolverFactory");
            if (actionMethodParameterResolverFactory == null)
                throw new ArgumentNullException("actionMethodParameterResolverFactory");

            this.pluginProviderFactory = pluginProviderFactory;
            this.mvcResolverFactory = mvcResolverFactory;
            this.mvcContextFactory = mvcContextFactory;
            this.siteMapChildStateFactory = siteMapChildStateFactory;
            this.urlPath = urlPath;
            this.controllerTypeResolverFactory = controllerTypeResolverFactory;
            this.actionMethodParameterResolverFactory = actionMethodParameterResolverFactory;
        }
コード例 #2
0
        public SiteMapFactory(
            ISiteMapPluginProviderFactory pluginProviderFactory,
            IMvcResolverFactory mvcResolverFactory,
            IMvcContextFactory mvcContextFactory,
            ISiteMapChildStateFactory siteMapChildStateFactory,
            IUrlPath urlPath,
            IControllerTypeResolverFactory controllerTypeResolverFactory,
            IActionMethodParameterResolverFactory actionMethodParameterResolverFactory
            )
        {
            if (pluginProviderFactory == null)
            {
                throw new ArgumentNullException("pluginProviderFactory");
            }
            if (mvcResolverFactory == null)
            {
                throw new ArgumentNullException("mvcResolverFactory");
            }
            if (mvcContextFactory == null)
            {
                throw new ArgumentNullException("mvcContextFactory");
            }
            if (siteMapChildStateFactory == null)
            {
                throw new ArgumentNullException("siteMapChildStateFactory");
            }
            if (urlPath == null)
            {
                throw new ArgumentNullException("urlPath");
            }
            if (controllerTypeResolverFactory == null)
            {
                throw new ArgumentNullException("controllerTypeResolverFactory");
            }
            if (actionMethodParameterResolverFactory == null)
            {
                throw new ArgumentNullException("actionMethodParameterResolverFactory");
            }

            this.pluginProviderFactory    = pluginProviderFactory;
            this.mvcResolverFactory       = mvcResolverFactory;
            this.mvcContextFactory        = mvcContextFactory;
            this.siteMapChildStateFactory = siteMapChildStateFactory;
            this.urlPath = urlPath;
            this.controllerTypeResolverFactory        = controllerTypeResolverFactory;
            this.actionMethodParameterResolverFactory = actionMethodParameterResolverFactory;
        }