/// <inheritdoc /> public void Dispose() { // https://github.com/Kittyfisto/Tailviewer/issues/282 _listeners.Clear(); _properties.Clear(); lock (_syncRoot) { _logBuffer.Clear(); } }
/// <inheritdoc /> public void Dispose() { ILogSource logSource = _source; logSource?.Dispose(); _taskScheduler.StopPeriodic(_task); // https://github.com/Kittyfisto/Tailviewer/issues/282 _listeners.Clear(); _properties.Clear(); _source = null; _isDisposed = true; }