Ejemplo n.º 1
0
 /// <summary>
 /// Create new instance of Stage Root Path
 /// </summary>
 /// <param name="subset"></param>
 /// <param name="process"></param>
 /// <returns></returns>
 public static JitLocation CreateRoot(JitStage stage, JitProcess process = null)
 {
     return(new JitLocation
     {
         Stage = stage,
         SubsetCache = stage,
         Path = "\\",
         Process = process,
     });
 }
Ejemplo n.º 2
0
        public static JitLocation Create(JitStage stage, string pathFromStage, JitProcess process = null)
        {
            JitLocation loc;

            if (pathFromStage == "\\")
            {
                return(CreateRoot(stage, process));
            }
            else
            {
                loc = stage.FindSubsetProcess(CreateRoot(stage), pathFromStage);
                return(new JitLocation
                {
                    Stage = stage,
                    SubsetCache = loc?.Process as JitSubset,
                    Path = pathFromStage,
                    Process = process,
                });
            }
        }