void CloseFile() { if (_currentFile != null) { _currentFile.Dispose(); _currentFile = null; } _nextCheckpoint = null; }
/// <inheritdoc /> public void Dispose() { asyncWriter.Dispose(); sink.Dispose(); }
/// <summary> /// Creates the sink. /// <para/> /// If a sink already exists, disposes it. /// </summary> /// <param name="date">Date to create the sink.</param> private void CreateSink(DateTime date) { sink?.Dispose(); sink = new FileSink(Formatter, renderer, namer.GetFilePath(date), encoding, bufferSize); }
void CloseFile() { _currentFile.Dispose(); _currentFile = null; _limitOfCurrentFile = null; }
/// <inheritdoc /> public void Dispose() { sink.Dispose(); }