Exemplo n.º 1
0
 public IEnumerable <string> ResolveGroupUrl(string virtualPath)
 {
     if (_groupManager.IsGroupUrlWithConsolidationDisabled(virtualPath))
     {
         return(_groupManager.GetResourceUrlsInGroup(virtualPath, _finder).SortByDependencies(_dependencyManager));
     }
     else
     {
         return(new[] { virtualPath });
     }
 }
Exemplo 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);
            }
        }
Exemplo n.º 3
0
 public bool IsGroupUrlWithConsolidationDisabled(string resourceUrl)
 {
     return(_inner.IsGroupUrlWithConsolidationDisabled(resourceUrl));
 }