Ejemplo n.º 1
0
 public IEnumerable <string> ResolveGroupUrl(string virtualPath)
 {
     if (_groupManager.IsGroupUrlWithConsolidationDisabled(virtualPath))
     {
         return(_groupManager.GetResourceUrlsInGroup(virtualPath, _finder).SortByDependencies(_dependencyManager));
     }
     else
     {
         return(new[] { virtualPath });
     }
 }
Ejemplo n.º 2
0
        private IEnumerable <string> GetResourceUrls(IResourceGroupManager groupManager, string resourceUrl)
        {
            IEnumerable <string> resolvedResourceUrls;

            if (groupManager.IsGroupUrlWithConsolidationDisabled(resourceUrl))
            {
                resolvedResourceUrls = groupManager.GetResourceUrlsInGroup(resourceUrl, _finder)
                                       .SortByDependencies(_dependencyManager);
            }
            else
            {
                resolvedResourceUrls = new[] { groupManager.ResolveResourceUrl(resourceUrl) };
            }

            if (!String.IsNullOrEmpty(Version))
            {
                return(resolvedResourceUrls.Select(u => u.AddQueryParam("v", Version)));
            }
            else
            {
                return(resolvedResourceUrls);
            }
        }