Ejemplo n.º 1
0
        public void Dispose()
        {
            if (CanSignal && !_hasExited)
            {
                // Request asynchronous termination because SengSignal allocates additional resources and may fail.
                // (Dispose should not fail!)
                _helper.RequestAsyncTermination(_token);
            }

            ChildProcessStateCollection.RemoveChildProcessState(this);
            _exitedEvent.Dispose();
        }
Ejemplo n.º 2
0
 public void Dispose()
 {
     ChildProcessStateCollection.RemoveChildProcessState(this);
     _exitedEvent.Dispose();
 }