Esempio n. 1
0
        public override IJournalWriter CreateJournalWriter(long nextRecordNumber)
        {
            var fileName = _fileStorageSettings.FileName;

            _currentWriter = new FileJournalWriter(fileName, nextRecordNumber);
            return(_currentWriter);
        }
Esempio n. 2
0
        public override IJournalWriter CreateJournalWriter(long nextRecordNumber)
        {
            var fileName = _fileStorageSettings.FileName;
            var pageSize = _fileStorageSettings.PageSize;

            _currentWriter = new FileJournalWriter(_settings, fileName, nextRecordNumber, pageSize);

            return _currentWriter;
        }
Esempio n. 3
0
 public FileJournalSubscriptionSource(FileJournalWriter journalWriter)
 {
     _journalWriter = journalWriter;
     _subscriptions = new Dictionary <Guid, JournalSubscription>();
     _journalWriter.RecordsWritten += OnRecordsWritten;
 }