private bool disposedValue = false; // To detect redundant calls protected virtual void Dispose(bool disposing) { if (!disposedValue) { if (disposing) { if (SubscriptionToConsoleReadLineAsyncAsObservableDisposeHandle != null) { SubscriptionToConsoleReadLineAsyncAsObservableDisposeHandle.Dispose(); } } disposedValue = true; } }
private bool disposedValue = false; // To detect redundant calls protected virtual void Dispose(bool disposing) { if (!disposedValue) { if (disposing) { if (SubscriptionToConsoleReadLineAsyncAsObservableDisposeHandle != null) { SubscriptionToConsoleReadLineAsyncAsObservableDisposeHandle.Dispose(); } if (ConvertFileSystemGraphToDBDataAndResults != null) { ConvertFileSystemGraphToDBDataAndResults.Dispose(); } } disposedValue = true; } }