public IEnumerable <string> ResolveGroupUrl(string virtualPath) { if (_groupManager.IsGroupUrlWithConsolidationDisabled(virtualPath)) { return(_groupManager.GetResourceUrlsInGroup(virtualPath, _finder).SortByDependencies(_dependencyManager)); } else { return(new[] { virtualPath }); } }
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); } }