public override IJournalWriter CreateJournalWriter(long nextRecordNumber) { var fileName = _fileStorageSettings.FileName; _currentWriter = new FileJournalWriter(fileName, nextRecordNumber); return(_currentWriter); }
public override IJournalWriter CreateJournalWriter(long nextRecordNumber) { var fileName = _fileStorageSettings.FileName; var pageSize = _fileStorageSettings.PageSize; _currentWriter = new FileJournalWriter(_settings, fileName, nextRecordNumber, pageSize); return _currentWriter; }
public FileJournalSubscriptionSource(FileJournalWriter journalWriter) { _journalWriter = journalWriter; _subscriptions = new Dictionary <Guid, JournalSubscription>(); _journalWriter.RecordsWritten += OnRecordsWritten; }