Пример #1
0
        private IEnumerable <string> GlobalDependenciesFor(string path)
        {
            var resourceType = ResourceType.FromPath(path);
            IResourceGroupManager groupManager = null;

            if (resourceType == ResourceType.Script)
            {
                groupManager = _scriptGroups;
            }
            else if (resourceType == ResourceType.Stylesheet)
            {
                groupManager = _styleGroups;
            }

            if (groupManager != null)
            {
                var allGlobalDependencies = groupManager.GetGlobalDependencies();
                return(allGlobalDependencies.TakeWhile(p => !p.Equals(path, Comparisons.VirtualPath)));
            }

            return(Enumerable.Empty <string>());
        }
Пример #2
0
 public IEnumerable <string> GetGlobalDependencies()
 {
     return(_inner.GetGlobalDependencies());
 }