private ChildProcess SpawnNewProcess()
        {
            var ipcClient    = new NamedPipesClient();
            var childProcess = new ChildProcess(ipcClient);

            childProcess.Start();

            return(childProcess);
        }
Ejemplo n.º 2
0
        private ChildProcess SpawnNewProcess()
        {
            var ipcClient            = new NamedPipesClient();
            var requestResponseClent = new NamedPipesRequestResponseClient(ipcClient);
            var childProcess         = new ChildProcess(requestResponseClent);

            childProcess.Start();

            return(childProcess);
        }
Ejemplo n.º 3
0
        public void Reclaim(ChildProcess childProcess)
        {
            if (childProcess.HasExited)
            {
                return;
            }

            lock (_lock)
            {
                _freeProcesses.Enqueue(childProcess);
            }
        }
Ejemplo n.º 4
0
 public ChildProcessLease(ChildProcessPool pool, ChildProcess childProcess)
 {
     _pool        = pool ?? throw new ArgumentNullException(nameof(pool));
     ChildProcess = childProcess ?? throw new ArgumentNullException(nameof(childProcess));
 }