Esempio n. 1
0
        public override int Execute()
        {
            var executor = new ExecuteScriptBehavior(_path, _args);

            executor.DebugController = new WcfDebugController(_port);

            return(executor.Execute());
        }
Esempio n. 2
0
        public override int Execute()
        {
            var executor = new ExecuteScriptBehavior(_path, _args);

            SystemLogger.SetWriter(executor);
            switch (ProtocolType)
            {
            case DebugProtocolType.Wcf:
                executor.DebugController = new WcfDebugController(_port);
                break;

            case DebugProtocolType.Tcp:
            default:
                var tcpDebugServer = new BinaryTcpDebugServer(_port);
                executor.DebugController = tcpDebugServer.CreateDebugController();
                break;
            }

            return(executor.Execute());
        }