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");
        }
Beispiel #2
0
 public ConsoleProcess(PathHandlingStrategy pathHandling) : base(pathHandling)
 {
 }
Beispiel #3
0
 public DebugeeProcess(PathHandlingStrategy pathHandling)
 {
     _strategy = pathHandling;
 }
Beispiel #4
0
 public ServerProcess(PathHandlingStrategy pathHandling) : base(pathHandling)
 {
 }