Exemplo n.º 1
0
 public IResourceGroup GetGroupOrDefault(string consolidatedUrl, IResourceFinder finder)
 {
     return(_resourceCache.GetOrAddGroup(consolidatedUrl, () =>
     {
         return _inner.GetGroupOrDefault(consolidatedUrl, finder);
     }));
 }
Exemplo n.º 2
0
        private bool IsConsolidatedUrl(string virtualPath, IResourceGroupManager groupTemplates, out IEnumerable <IResource> resourcesInGroup)
        {
            var group = groupTemplates.GetGroupOrDefault(virtualPath, _resourceFinder);

            if (group == null)
            {
                resourcesInGroup = null;
                return(false);
            }

            resourcesInGroup = group.GetResources().SortByDependencies(this);
            return(true);
        }
Exemplo n.º 3
0
        private bool IsConsolidatedUrl(string virtualPath, IResourceGroupManager groupTemplates, out IEnumerable<IResource> resourcesInGroup)
        {
            var group = groupTemplates.GetGroupOrDefault(virtualPath, _resourceFinder);

            if (group == null)
            {
                resourcesInGroup = null;
                return false;
            }

            resourcesInGroup = group.GetResources().SortByDependencies(this);
            return true;
        }