public RequestCacheableSiteMapNode( ISiteMap siteMap, string key, bool isDynamic, ISiteMapNodePluginProvider pluginProvider, IMvcContextFactory mvcContextFactory, ISiteMapNodeChildStateFactory siteMapNodeChildStateFactory, ILocalizationService localizationService, IUrlPath urlPath ) : base( siteMap, key, isDynamic, pluginProvider, mvcContextFactory, siteMapNodeChildStateFactory, localizationService, urlPath ) { if (mvcContextFactory == null) { throw new ArgumentNullException("mvcContextFactory"); } this.requestCache = mvcContextFactory.GetRequestCache(); }
public AuthorizeAttributeAclModule( IMvcContextFactory mvcContextFactory, IControllerDescriptorFactory controllerDescriptorFactory, IControllerBuilder controllerBuilder, IGlobalFilterProvider filterProvider ) { if (mvcContextFactory == null) { throw new ArgumentNullException("mvcContextFactory"); } if (controllerDescriptorFactory == null) { throw new ArgumentNullException("controllerDescriptorFactory"); } if (controllerBuilder == null) { throw new ArgumentNullException("controllerBuilder"); } if (filterProvider == null) { throw new ArgumentNullException("filterProvider"); } this.mvcContextFactory = mvcContextFactory; this.controllerDescriptorFactory = controllerDescriptorFactory; this.controllerBuilder = controllerBuilder; this.filterProvider = filterProvider; }
public AuthorizeAttributeAclModule( IMvcContextFactory mvcContextFactory, IObjectCopier objectCopier, IControllerDescriptorFactory controllerDescriptorFactory, IControllerBuilder controllerBuilder, IAuthorizeAttributeBuilder authorizeAttributeBuilder, IGlobalFilterProvider filterProvider ) { if (mvcContextFactory == null) throw new ArgumentNullException("mvcContextFactory"); if (objectCopier == null) throw new ArgumentNullException("objectCopier"); if (controllerDescriptorFactory == null) throw new ArgumentNullException("controllerDescriptorFactory"); if (controllerBuilder == null) throw new ArgumentNullException("controllerBuilder"); if (authorizeAttributeBuilder == null) throw new ArgumentNullException("authorizeAttributeBuilder"); if (filterProvider == null) throw new ArgumentNullException("filterProvider"); this.mvcContextFactory = mvcContextFactory; this.objectCopier = objectCopier; this.controllerDescriptorFactory = controllerDescriptorFactory; this.controllerBuilder = controllerBuilder; this.authorizeAttributeBuilder = authorizeAttributeBuilder; this.filterProvider = filterProvider; }
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(); }
public SiteMapNodeFactory( ISiteMapNodeChildStateFactory siteMapNodeChildStateFactory, ILocalizationServiceFactory localizationServiceFactory, ISiteMapNodePluginProvider pluginProvider, IUrlPath urlPath, IMvcContextFactory mvcContextFactory ) { if (siteMapNodeChildStateFactory == null) { throw new ArgumentNullException("siteMapNodeChildStateFactory"); } if (localizationServiceFactory == null) { throw new ArgumentNullException("localizationServiceFactory"); } if (pluginProvider == null) { throw new ArgumentNullException("pluginProvider"); } if (urlPath == null) { throw new ArgumentNullException("urlPath"); } if (mvcContextFactory == null) { throw new ArgumentNullException("mvcContextFactory"); } this.siteMapNodeChildStateFactory = siteMapNodeChildStateFactory; this.localizationServiceFactory = localizationServiceFactory; this.pluginProvider = pluginProvider; this.urlPath = urlPath; this.mvcContextFactory = mvcContextFactory; }
public SiteMapNodeFactory( ISiteMapNodeChildStateFactory siteMapNodeChildStateFactory, ILocalizationServiceFactory localizationServiceFactory, ISiteMapNodePluginProvider pluginProvider, IUrlPath urlPath, IMvcContextFactory mvcContextFactory ) { if (siteMapNodeChildStateFactory == null) throw new ArgumentNullException("siteMapNodeChildStateFactory"); if (localizationServiceFactory == null) throw new ArgumentNullException("localizationServiceFactory"); if (pluginProvider == null) throw new ArgumentNullException("pluginProvider"); if (urlPath == null) throw new ArgumentNullException("urlPath"); if (mvcContextFactory == null) throw new ArgumentNullException("mvcContextFactory"); this.siteMapNodeChildStateFactory = siteMapNodeChildStateFactory; this.localizationServiceFactory = localizationServiceFactory; this.pluginProvider = pluginProvider; this.urlPath = urlPath; this.mvcContextFactory = mvcContextFactory; }
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; }
public CustomSiteMapFactoryContainer(ConfigurationSettings settings, IMvcContextFactory mvcContextFactory, IUrlPath urlPath) { this.settings = settings; this.mvcContextFactory = mvcContextFactory; this.requestCache = this.mvcContextFactory.GetRequestCache(); this.urlPath = urlPath; this.urlKeyFactory = new UrlKeyFactory(this.urlPath); }
// constructor public SessionBasedSiteMapCacheKeyGenerator(IMvcContextFactory mvcContextFactory) { if (mvcContextFactory == null) { throw new ArgumentNullException("mvcContextFactory"); } this.mvcContextFactory = mvcContextFactory; }
public SiteMapNodeUrlResolver( IMvcContextFactory mvcContextFactory ) { if (mvcContextFactory == null) throw new ArgumentNullException("mvcContextFactory"); this.mvcContextFactory = mvcContextFactory; }
public SiteMapCacheKeyGenerator( IMvcContextFactory mvcContextFactory ) { if (mvcContextFactory == null) throw new ArgumentNullException("mvcContextFactory"); this.mvcContextFactory = mvcContextFactory; }
public StringLocalizer( IMvcContextFactory mvcContextFactory ) { if (mvcContextFactory == null) throw new ArgumentNullException("mvcContextFactory"); this.mvcContextFactory = mvcContextFactory; }
public XmlRolesAclModule( IMvcContextFactory mvcContextFactory ) { if (mvcContextFactory == null) throw new ArgumentNullException("mvcContextFactory"); this.mvcContextFactory = mvcContextFactory; }
public UrlPath( IMvcContextFactory mvcContextFactory ) { if (mvcContextFactory == null) throw new ArgumentNullException("mvcContextFactory"); this.mvcContextFactory = mvcContextFactory; }
public LockableSiteMap( ISiteMapPluginProvider pluginProvider, IMvcContextFactory mvcContextFactory, ISiteMapChildStateFactory siteMapChildStateFactory, IUrlPath urlPath, ISiteMapSettings siteMapSettings ) : base(pluginProvider, mvcContextFactory, siteMapChildStateFactory, urlPath, siteMapSettings) { }
public StringLocalizer( IMvcContextFactory mvcContextFactory ) { if (mvcContextFactory == null) { throw new ArgumentNullException("mvcContextFactory"); } this.mvcContextFactory = mvcContextFactory; }
public SiteMapFactoryContainer( ConfigurationSettings settings, IMvcContextFactory mvcContextFactory, IUrlPath urlPath) { this.settings = settings; this.mvcContextFactory = mvcContextFactory; this.requestCache = this.mvcContextFactory.GetRequestCache(); this.urlPath = urlPath; }
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 AspNetCacheProvider( IMvcContextFactory mvcContextFactory ) { if (mvcContextFactory == null) { throw new ArgumentNullException("mvcContextFactory"); } this.mvcContextFactory = mvcContextFactory; }
public SiteMapNodeUrlResolver( IMvcContextFactory mvcContextFactory ) { if (mvcContextFactory == null) { throw new ArgumentNullException("mvcContextFactory"); } this.mvcContextFactory = mvcContextFactory; }
public SiteMapNode( ISiteMap siteMap, string key, bool isDynamic, ISiteMapNodePluginProvider pluginProvider, IMvcContextFactory mvcContextFactory, ISiteMapNodeChildStateFactory siteMapNodeChildStateFactory, ILocalizationService localizationService, IUrlPath urlPath ) { if (siteMap == null) { throw new ArgumentNullException("siteMap"); } if (string.IsNullOrEmpty(key)) { throw new ArgumentNullException("key"); } if (pluginProvider == null) { throw new ArgumentNullException("pluginProvider"); } if (mvcContextFactory == null) { throw new ArgumentNullException("mvcContextFactory"); } if (siteMapNodeChildStateFactory == null) { throw new ArgumentNullException("siteMapNodeChildStateFactory"); } if (localizationService == null) { throw new ArgumentNullException("localizationService"); } if (urlPath == null) { throw new ArgumentNullException("urlPath"); } this.siteMap = siteMap; this.key = key; this.isDynamic = isDynamic; this.pluginProvider = pluginProvider; this.mvcContextFactory = mvcContextFactory; this.localizationService = localizationService; this.urlPath = urlPath; // Initialize child collections this.attributes = siteMapNodeChildStateFactory.CreateAttributeDictionary(siteMap, localizationService); this.routeValues = siteMapNodeChildStateFactory.CreateRouteValueDictionary(siteMap); this.preservedRouteParameters = siteMapNodeChildStateFactory.CreatePreservedRouteParameterCollection(siteMap); this.roles = siteMapNodeChildStateFactory.CreateRoleCollection(siteMap); this.metaRobotsValues = siteMapNodeChildStateFactory.CreateMetaRobotsValueCollection(siteMap); }
public XmlRolesAclModule( IMvcContextFactory mvcContextFactory ) { if (mvcContextFactory == null) { throw new ArgumentNullException("mvcContextFactory"); } this.mvcContextFactory = mvcContextFactory; }
public RequestCache( IMvcContextFactory mvcContextFactory ) { if (mvcContextFactory == null) { throw new ArgumentNullException("mvcContextFactory"); } this.mvcContextFactory = mvcContextFactory; }
public UrlPath( IMvcContextFactory mvcContextFactory ) { if (mvcContextFactory == null) { throw new ArgumentNullException("mvcContextFactory"); } this.mvcContextFactory = mvcContextFactory; }
public UrlPath( IMvcContextFactory mvcContextFactory, IBindingProvider bindingProvider ) { if (mvcContextFactory == null) throw new ArgumentNullException("mvcContextFactory"); if (bindingProvider == null) throw new ArgumentNullException("bindingProvider"); this.mvcContextFactory = mvcContextFactory; this.bindingProvider = bindingProvider; }
public SiteMapNodeUrlResolver( IMvcContextFactory mvcContextFactory, IUrlPath urlPath ) { if (mvcContextFactory == null) throw new ArgumentNullException("mvcContextFactory"); if (urlPath == null) throw new ArgumentNullException("urlPath"); this.mvcContextFactory = mvcContextFactory; this.urlPath = urlPath; }
public BindingProvider( IBindingFactory bindingFactory, IMvcContextFactory mvcContextFactory ) { if (bindingFactory == null) throw new ArgumentNullException("bindingFactory"); if (mvcContextFactory == null) throw new ArgumentNullException("mvcContextFactory"); this.bindingFactory = bindingFactory; this.mvcContextFactory = mvcContextFactory; }
public JsonToDictionaryDeserializer( IJavaScriptSerializer javaScriptSerializer, IMvcContextFactory mvcContextFactory ) { if (javaScriptSerializer == null) throw new ArgumentNullException("javaScriptSerializer"); if (mvcContextFactory == null) throw new ArgumentNullException("mvcContextFactory"); this.javaScriptSerializer = javaScriptSerializer; this.requestCache = mvcContextFactory.GetRequestCache(); }
public SiteMapNodeFactoryContainer( ConfigurationSettings settings, IMvcContextFactory mvcContextFactory, IUrlPath urlPath) { this.absoluteFileName = HostingEnvironment.MapPath(settings.SiteMapFileName); this.settings = settings; this.mvcContextFactory = mvcContextFactory; this.requestCache = this.mvcContextFactory.GetRequestCache(); this.urlPath = urlPath; this.dynamicNodeProviders = this.ResolveDynamicNodeProviders(); this.siteMapNodeUrlResolvers = this.ResolveSiteMapNodeUrlResolvers(); this.siteMapNodeVisibilityProviders = this.ResolveSiteMapNodeVisibilityProviders(settings.DefaultSiteMapNodeVisibiltyProvider); }
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; }
public SiteMapNodeFactoryContainer( ConfigurationSettings settings, IMvcContextFactory mvcContextFactory, IUrlPath urlPath) { this.absoluteFileName = HostingEnvironment.MapPath(settings.SiteMapFileName); this.settings = settings; this.mvcContextFactory = mvcContextFactory; this.requestCache = this.mvcContextFactory.GetRequestCache(); this.urlPath = urlPath; this.assemblyProvider = new AttributeAssemblyProvider(settings.IncludeAssembliesForScan, settings.ExcludeAssembliesForScan); this.mvcSiteMapNodeAttributeProvider = new MvcSiteMapNodeAttributeDefinitionProvider(); this.dynamicNodeProviders = this.ResolveDynamicNodeProviders(); this.siteMapNodeUrlResolvers = this.ResolveSiteMapNodeUrlResolvers(); this.siteMapNodeVisibilityProviders = this.ResolveSiteMapNodeVisibilityProviders(settings.DefaultSiteMapNodeVisibiltyProvider); }
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; }
public UrlPath( IMvcContextFactory mvcContextFactory, IBindingProvider bindingProvider ) { if (mvcContextFactory == null) { throw new ArgumentNullException("mvcContextFactory"); } if (bindingProvider == null) { throw new ArgumentNullException("bindingProvider"); } this.mvcContextFactory = mvcContextFactory; this.bindingProvider = bindingProvider; }
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; }
public SiteMapNodeUrlResolver( IMvcContextFactory mvcContextFactory, IUrlPath urlPath ) { if (mvcContextFactory == null) { throw new ArgumentNullException("mvcContextFactory"); } if (urlPath == null) { throw new ArgumentNullException("urlPath"); } this.mvcContextFactory = mvcContextFactory; this.urlPath = urlPath; }
public BindingProvider( IBindingFactory bindingFactory, IMvcContextFactory mvcContextFactory ) { if (bindingFactory == null) { throw new ArgumentNullException("bindingFactory"); } if (mvcContextFactory == null) { throw new ArgumentNullException("mvcContextFactory"); } this.bindingFactory = bindingFactory; this.mvcContextFactory = mvcContextFactory; }
public JsonToDictionaryDeserializer( IJavaScriptSerializer javaScriptSerializer, IMvcContextFactory mvcContextFactory ) { if (javaScriptSerializer == null) { throw new ArgumentNullException("javaScriptSerializer"); } if (mvcContextFactory == null) { throw new ArgumentNullException("mvcContextFactory"); } this.javaScriptSerializer = javaScriptSerializer; this.requestCache = mvcContextFactory.GetRequestCache(); }
public LockableSiteMapNode( ISiteMap siteMap, string key, bool isDynamic, ISiteMapNodePluginProvider pluginProvider, IMvcContextFactory mvcContextFactory, ISiteMapNodeChildStateFactory siteMapNodeChildStateFactory, ILocalizationService localizationService, IUrlPath urlPath ) : base(siteMap, key, isDynamic, pluginProvider, mvcContextFactory, siteMapNodeChildStateFactory, localizationService, urlPath) { }
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(); }
public SiteMapNode( ISiteMap siteMap, string key, bool isDynamic, ISiteMapNodePluginProvider pluginProvider, IMvcContextFactory mvcContextFactory, ISiteMapNodeChildStateFactory siteMapNodeChildStateFactory, ILocalizationService localizationService, IUrlPath urlPath ) { if (siteMap == null) throw new ArgumentNullException("siteMap"); if (string.IsNullOrEmpty(key)) throw new ArgumentNullException("key"); if (pluginProvider == null) throw new ArgumentNullException("pluginProvider"); if (mvcContextFactory == null) throw new ArgumentNullException("mvcContextFactory"); if (siteMapNodeChildStateFactory == null) throw new ArgumentNullException("siteMapNodeChildStateFactory"); if (localizationService == null) throw new ArgumentNullException("localizationService"); if (urlPath == null) throw new ArgumentNullException("urlPath"); this.siteMap = siteMap; this.key = key; this.isDynamic = isDynamic; this.pluginProvider = pluginProvider; this.mvcContextFactory = mvcContextFactory; this.localizationService = localizationService; this.urlPath = urlPath; // Initialize child collections this.attributes = siteMapNodeChildStateFactory.CreateAttributeDictionary(key, "Attributes", siteMap, localizationService); this.routeValues = siteMapNodeChildStateFactory.CreateRouteValueDictionary(key, "RouteValues", siteMap); this.preservedRouteParameters = siteMapNodeChildStateFactory.CreatePreservedRouteParameterCollection(siteMap); this.roles = siteMapNodeChildStateFactory.CreateRoleCollection(siteMap); this.metaRobotsValues = siteMapNodeChildStateFactory.CreateMetaRobotsValueCollection(siteMap); }
public SiteMapLoaderContainer(ConfigurationSettings settings) { // Singleton instances if (settings.EnableSiteMapFile) { this.absoluteFileName = HostingEnvironment.MapPath(settings.SiteMapFileName); } this.mvcContextFactory = new MvcContextFactory(); #if NET35 this.siteMapCache = new SiteMapCache(new AspNetCacheProvider<ISiteMap>(this.mvcContextFactory)); #else this.siteMapCache = new SiteMapCache(new RuntimeCacheProvider<ISiteMap>(System.Runtime.Caching.MemoryCache.Default)); #endif this.cacheDependency = this.ResolveCacheDependency(settings); this.requestCache = this.mvcContextFactory.GetRequestCache(); this.bindingFactory = new BindingFactory(); this.bindingProvider = new BindingProvider(this.bindingFactory, this.mvcContextFactory); this.urlPath = new UrlPath(this.mvcContextFactory, this.bindingProvider); this.siteMapCacheKeyGenerator = new SiteMapCacheKeyGenerator(this.mvcContextFactory); this.siteMapCacheKeyToBuilderSetMapper = new SiteMapCacheKeyToBuilderSetMapper(); this.reservedAttributeNameProvider = new ReservedAttributeNameProvider(settings.AttributesToIgnore); var siteMapNodeFactoryContainer = new SiteMapNodeFactoryContainer(settings, this.mvcContextFactory, this.urlPath, this.reservedAttributeNameProvider); this.siteMapNodeToParentRelationFactory = new SiteMapNodeToParentRelationFactory(); this.nodeKeyGenerator = new NodeKeyGenerator(); this.siteMapNodeFactory = siteMapNodeFactoryContainer.ResolveSiteMapNodeFactory(); this.siteMapNodeCreatorFactory = this.ResolveSiteMapNodeCreatorFactory(); this.cultureContextFactory = new CultureContextFactory(); this.dynamicSiteMapNodeBuilderFactory = new DynamicSiteMapNodeBuilderFactory(this.siteMapNodeCreatorFactory, this.cultureContextFactory); this.siteMapHierarchyBuilder = new SiteMapHierarchyBuilder(); this.siteMapNodeHelperFactory = this.ResolveSiteMapNodeHelperFactory(); this.siteMapNodeVisitor = this.ResolveSiteMapNodeVisitor(settings); this.siteMapXmlNameProvider = new SiteMapXmlNameProvider(); this.attributeAssemblyProviderFactory = new AttributeAssemblyProviderFactory(); this.mvcSiteMapNodeAttributeDefinitionProvider = new MvcSiteMapNodeAttributeDefinitionProvider(); this.siteMapNodeProvider = this.ResolveSiteMapNodeProvider(settings); this.siteMapBuiderSetStrategy = this.ResolveSiteMapBuilderSetStrategy(settings); var siteMapFactoryContainer = new SiteMapFactoryContainer(settings, this.mvcContextFactory, this.urlPath); this.siteMapFactory = siteMapFactoryContainer.ResolveSiteMapFactory(); this.siteMapCreator = new SiteMapCreator(this.siteMapCacheKeyToBuilderSetMapper, this.siteMapBuiderSetStrategy, this.siteMapFactory); }
public LockableSiteMapNode( ISiteMap siteMap, string key, bool isDynamic, ISiteMapNodePluginProvider pluginProvider, IMvcContextFactory mvcContextFactory, ISiteMapNodeChildStateFactory siteMapNodeChildStateFactory, ILocalizationService localizationService, IUrlPath urlPath ) : base( siteMap, key, isDynamic, pluginProvider, mvcContextFactory, siteMapNodeChildStateFactory, localizationService, urlPath ) { }
public SiteMapNodeFactoryContainer( ConfigurationSettings settings, IMvcContextFactory mvcContextFactory, IUrlPath urlPath, IReservedAttributeNameProvider reservedAttributeNameProvider) { if (settings.EnableSiteMapFile) { this.absoluteFileName = HostingEnvironment.MapPath(settings.SiteMapFileName); } this.settings = settings; this.mvcContextFactory = mvcContextFactory; this.requestCache = this.mvcContextFactory.GetRequestCache(); this.urlPath = urlPath; this.reservedAttributeNameProvider = reservedAttributeNameProvider; this.javaScriptSerializer = new JavaScriptSerializerAdapter(); this.jsonToDictionaryDeserializer = new JsonToDictionaryDeserializer(this.javaScriptSerializer, this.mvcContextFactory); this.assemblyProvider = new AttributeAssemblyProvider(settings.IncludeAssembliesForScan, settings.ExcludeAssembliesForScan); this.mvcSiteMapNodeAttributeProvider = new MvcSiteMapNodeAttributeDefinitionProvider(); this.dynamicNodeProviders = this.ResolveDynamicNodeProviders(); this.siteMapNodeUrlResolvers = this.ResolveSiteMapNodeUrlResolvers(); this.siteMapNodeVisibilityProviders = this.ResolveSiteMapNodeVisibilityProviders(settings.DefaultSiteMapNodeVisibiltyProvider); }
public SiteMapLoaderContainer(ConfigurationSettings settings) { // Singleton instances this.absoluteFileName = HostingEnvironment.MapPath(settings.SiteMapFileName); this.mvcContextFactory = new MvcContextFactory(); #if NET35 this.siteMapCache = new SiteMapCache(new AspNetCacheProvider<ISiteMap>(this.mvcContextFactory)); #else this.siteMapCache = new SiteMapCache(new RuntimeCacheProvider<ISiteMap>(System.Runtime.Caching.MemoryCache.Default)); #endif this.requestCache = this.mvcContextFactory.GetRequestCache(); this.urlPath = new UrlPath(this.mvcContextFactory); this.siteMapCacheKeyGenerator = new SiteMapCacheKeyGenerator(this.mvcContextFactory); this.siteMapCacheKeyToBuilderSetMapper = new SiteMapCacheKeyToBuilderSetMapper(); this.nodeKeyGenerator = new NodeKeyGenerator(); var siteMapNodeFactoryContainer = new SiteMapNodeFactoryContainer(settings, this.mvcContextFactory, this.urlPath); this.siteMapNodeFactory = siteMapNodeFactoryContainer.ResolveSiteMapNodeFactory(); this.siteMapXmlNameProvider = new SiteMapXmlNameProvider(); this.dynamicNodeBuilder = new DynamicNodeBuilder(this.nodeKeyGenerator, this.siteMapNodeFactory); this.siteMapBuiderSetStrategy = this.ResolveSiteMapBuilderSetStrategy(settings); var siteMapFactoryContainer = new SiteMapFactoryContainer(settings, this.mvcContextFactory, this.urlPath); this.siteMapFactory = siteMapFactoryContainer.ResolveSiteMapFactory(); this.siteMapCreator = new SiteMapCreator(this.siteMapCacheKeyToBuilderSetMapper, this.siteMapBuiderSetStrategy, this.siteMapFactory); }
public UpperCaseSiteMapNodeUrlResolver(IMvcContextFactory mvcContextFactory) : base(mvcContextFactory) { }
public SiteMapResolveUrl(IMvcContextFactory mvcContextFactory, IUrlPath urlPath) : base(mvcContextFactory, urlPath) { }
public SiteMapStoreCacheKeyGenerator(IMvcContextFactory mvcContextFactory) : base(mvcContextFactory) { }
public MyStringLocalizer(IMvcContextFactory mvcContextFactory) : base(mvcContextFactory) { }
public UpperCaseSiteMapNodeUrlResolver(IMvcContextFactory mvcContextFactory, IUrlPath urlPath) : base(mvcContextFactory, urlPath) { }