Beispiel #1
0
        private async void WaitForProcess()
        {
            await Task.Run(() => _process.WaitForExit());

            _process = null;
            OnProcessExited?.Invoke(this, EventArgs.Empty);
        }
 private void Run()
 {
     outThread.Join();
     errThread.Join();
     logWriter.Dispose();
     p.WaitForExit();
     OnProcessExited?.Invoke(this);
     waitHandle.Set();
 }
Beispiel #3
0
 private void Process_Exited(object sender, EventArgs e)
 {
     logger.Info($"process leaved : {_hook.ProcessId}");
     OnProcessExited?.Invoke(this);
 }