Exemplo n.º 1
0
 public IEnumerable <NodeHead> ResolveAllByPaths(IEnumerable <string> paths, bool resolveChildren)
 {
     if (UseCache && AppCache != null)
     {
         return(ResolveByPathsFromCache(paths, resolveChildren, true));
     }
     return(ApplicationResolver.ResolveAllByPaths(paths, resolveChildren));
 }
Exemplo n.º 2
0
 public NodeHead ResolveFirstByPaths(IEnumerable <string> paths)
 {
     if (UseCache && AppCache != null)
     {
         return(ResolveByPathsFromCache(paths, false, false).FirstOrDefault());
     }
     return(ApplicationResolver.ResolveFirstByPaths(paths));
 }
Exemplo n.º 3
0
        public IEnumerable <NodeHead> ResolveApplications(string appName, string contextNodePath, NodeType nodeType)
        {
            var paths = ApplicationResolver.GetAvailablePaths(contextNodePath, nodeType, this.AppFolderName, appName, Option);

            if (ResolveAll)
            {
                return(ResolveAllByPaths(paths, ResolveChildren));
            }
            else
            {
                return new NodeHead[] { ResolveFirstByPaths(paths) }
            };
        }
Exemplo n.º 4
0
 public IEnumerable <string> GetAvailablePaths(string appName, string contextNodePath, NodeType nodeType)
 {
     return(ApplicationResolver.GetAvailablePaths(contextNodePath, nodeType, this.AppFolderName, appName, Option));
 }