public void Dispose() { using (m_queryJobDataLock.AcquireWriteLock()) { // Prevent further data queries m_disposeStarted = true; } if (m_processStarted) { InternalKill(); m_resultTaskCompletionSource.Task.Wait(); } m_detouredProcess?.Dispose(); m_detouredProcess = null; m_output?.Dispose(); m_output = null; m_error?.Dispose(); m_error = null; m_reports = null; m_fileAccessManifestStreamWrapper.Dispose(); }
public void Dispose() { if (m_processStarted) { InternalKill(); m_resultTaskCompletionSource.Task.Wait(); } m_detouredProcess?.Dispose(); m_detouredProcess = null; m_output?.Dispose(); m_output = null; m_error?.Dispose(); m_error = null; m_reports = null; m_fileAccessManifestStreamWrapper.Dispose(); }