Example #1
0
        void CloseFile()
        {
            if (_currentFile != null)
            {
                _currentFile.Dispose();
                _currentFile = null;
            }

            _nextCheckpoint = null;
        }
Example #2
0
 /// <inheritdoc />
 public void Dispose()
 {
     asyncWriter.Dispose();
     sink.Dispose();
 }
Example #3
0
 /// <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);
 }
Example #4
0
 void CloseFile()
 {
     _currentFile.Dispose();
     _currentFile        = null;
     _limitOfCurrentFile = null;
 }
Example #5
0
 /// <inheritdoc />
 public void Dispose()
 {
     sink.Dispose();
 }