private void CloseFileWriter() { if (_currentFileWriter != null) { _currentFileWriter.Dispose(); _currentFileWriter = null; } _nextCheckpoint = null; }
public void Dispose() { lock (this) { if (!Disposed) { Disposed = true; GC.SuppressFinalize(this); if (MessageWriter != null) { if (MessageWriter is IThreadExceptionEvent) { (MessageWriter as IThreadExceptionEvent).OnThreadException -= OnWriterThreadException; } MessageWriter.Dispose(); MessageWriter = null; } } } }
public void Dispose() { _writer.Dispose(); }