public void Dispose() { activeSolutionTracker.ActiveSolutionChanged -= ActiveSolutionTracker_ActiveSolutionChanged; analysisConfigMonitor.ConfigChanged -= AnalysisConfigMonitor_ConfigChanged; eslintBridgeClient?.Dispose(); eslintBridgeProcess?.Dispose(); serverInitLocker?.Dispose(); }
protected virtual async Task Dispose(bool disposing) { if (disposing && !isDisposed) { try { await Close(); } catch { // nothing to do if the call failed } eslintBridgeProcess.Dispose(); httpWrapper.Dispose(); isDisposed = true; } }