Пример #1
0
            internal Tool(ProcessPool pool, Process ps)
            {
                _pool = pool;
                _ps = ps;
                _isStarted = new ManualResetEvent(false);
                _isExited = new ManualResetEvent(false);
                _syncRoot = new object();

                _ps.OutputDataReceived += DataReceivedEventHandler;
                _ps.ErrorDataReceived += ErrorReceivedEventHandler;
                _ps.EnableRaisingEvents = true;

                ConsoleID = -1;
            }
Пример #2
0
            internal Tool(ProcessPool pool, Process ps)
            {
                _pool      = pool;
                _ps        = ps;
                _isStarted = new ManualResetEvent(false);
                _isExited  = new ManualResetEvent(false);
                _syncRoot  = new object();

                _ps.OutputDataReceived += DataReceivedEventHandler;
                _ps.ErrorDataReceived  += ErrorReceivedEventHandler;
                _ps.EnableRaisingEvents = true;

                ConsoleID = -1;
            }
Пример #3
0
 internal ToolBatch(ProcessPool pool)
 {
     _pool = pool;
     _consoleID = -1;
 }
Пример #4
0
 internal ToolBatch(ProcessPool pool)
 {
     _pool      = pool;
     _consoleID = -1;
 }