internal AssmanContext(ResourceMode resourceMode) { var resourceCache = ResourceCacheFactory.GetCache(resourceMode); _scriptGroups = ResourceGroupManager.GetInstance(resourceMode, resourceCache); _styleGroups = ResourceGroupManager.GetInstance(resourceMode, resourceCache); _finder = new CompositeResourceFinder(resourceCache); _finder.Exclude(new ConsolidatedResourceExcluder(_scriptGroups)); _finder.Exclude(new ConsolidatedResourceExcluder(_styleGroups)); _finder.Exclude(new PreCompiledResourceExcluder()); _finder.Exclude(new VsDocResourceExcluder()); _filterPipelineMap = new ContentFilterPipelineMap(); _assemblies = new List <Assembly>(); _dependencyManager = DependencyManagerFactory.GetDependencyManager(_finder, _scriptGroups, _styleGroups); _resourceMode = resourceMode; }
internal AssmanContext(ResourceMode resourceMode) { var resourceCache = ResourceCacheFactory.GetCache(resourceMode); _scriptGroups = ResourceGroupManager.GetInstance(resourceMode, resourceCache); _styleGroups = ResourceGroupManager.GetInstance(resourceMode, resourceCache); _compositeFinder = new CompositeResourceFinder(); _compositeFinder.Exclude(new ConsolidatedResourceExcluder(_scriptGroups)); _compositeFinder.Exclude(new ConsolidatedResourceExcluder(_styleGroups)); _compositeFinder.Exclude(new PreCompiledResourceExcluder()); _compositeFinder.Exclude(new VsDocResourceExcluder()); _finder = new ResourceModeFilteringFinder(resourceMode, new CachingResourceFinder(resourceCache, _compositeFinder)); _filterPipelineMap = new ContentFilterPipelineMap(); _assemblies = new List<Assembly>(); _dependencyManager = DependencyManagerFactory.GetDependencyManager(_finder, _scriptGroups, _styleGroups, resourceMode); _resourceMode = resourceMode; _scriptPathResolver = new ResourcePathResolver(_scriptGroups, _dependencyManager, _finder); _stylePathResolver = new ResourcePathResolver(_styleGroups, _dependencyManager, _finder); }