Ejemplo n.º 1
0
 public IEnumerable <string> GetMatchingGroupUrls(string virtualPath)
 {
     if (_groupManager.IsConsolidatedUrl(virtualPath))
     {
         return(new[] { virtualPath });
     }
     else
     {
         return(_groupManager.GetMatchingConsolidatedUrls(virtualPath));
     }
 }
Ejemplo n.º 2
0
        public IEnumerable <string> GetMatchingConsolidatedUrls(string resourceUrl)
        {
            List <string> consolidatedUrls;

            if (_unconsolidatedUrlMap.TryGetValue(resourceUrl, out consolidatedUrls))
            {
                return(consolidatedUrls);
            }
            else
            {
                //if the url was not in the prepopulated resource url map, then it is still possible that it matches a pattern
                //of a group.  Thus, we need to check the inner group manager.  This is an edge case that should really only happen
                //if you are trying to include a resource path that does not actually exist.  However, we need to handle it
                //because otherwise things will work differently when running in a precompiled state, and that would not be good.
                consolidatedUrls = _inner.GetMatchingConsolidatedUrls(resourceUrl).ToList();
                _unconsolidatedUrlMap[resourceUrl] = consolidatedUrls;
                return(consolidatedUrls);
            }
        }
Ejemplo n.º 3
0
 public IEnumerable <string> GetMatchingConsolidatedUrls(string resourceUrl)
 {
     //TODO: Do some perf testing here to see if it should be cached
     return(_inner.GetMatchingConsolidatedUrls(resourceUrl));
 }