예제 #1
0
 public void Dispose()
 {
     _io?.Dispose();
     _io     = null;
     _reader = null;
     _writer = null;
 }
예제 #2
0
 public EndlessFileStream(EndlessFileStreamSettings settings,
                          IEndlessFileStreamWriter writer = null,
                          IEndlessFileStreamReader reader = null,
                          IEndlessFileStreamIo io         = null)
 {
     //_settings = settings;
     _io = io ?? new EndlessFileStreamIo(settings.BaseDirectory,
                                         settings.MaxLogFileSizeInMByte,
                                         settings.MaxLogFileSizeInKByte,
                                         settings.NumberOfLogFilesToUseForCentralDatabase);
     _writer = writer ?? new EndlessFileStreamWriter(_io);
     _reader = reader ?? new EndlessFileStreamReader(_io);
 }
예제 #3
0
 public EndlessFileStreamWriter(IEndlessFileStreamIo fileIo)
 {
     _fileIo = fileIo;
 }
예제 #4
0
 public EndlessFileStreamReader(IEndlessFileStreamIo fileIo)
 {
     _fileIo = fileIo;
 }