예제 #1
0
        public static DebugeeProcess CreateProcess(string adapterId, PathHandlingStrategy pathStrategy)
        {
            if (adapterId == "oscript")
            {
                return new ConsoleProcess(pathStrategy);
            }

            if (adapterId == "oscript.web")
            {
                return new ServerProcess(pathStrategy);
            }
            
            throw new ArgumentOutOfRangeException(nameof(adapterId), adapterId, "Unsupported debugger");
        }
예제 #2
0
 public ConsoleProcess(PathHandlingStrategy pathHandling) : base(pathHandling)
 {
 }
예제 #3
0
 public DebugeeProcess(PathHandlingStrategy pathHandling)
 {
     _strategy = pathHandling;
 }
예제 #4
0
 public ServerProcess(PathHandlingStrategy pathHandling) : base(pathHandling)
 {
 }