示例#1
0
        public override IJournalWriter CreateJournalWriter(long nextRecordNumber)
        {
            var fileName = _fileStorageSettings.FileName;

            _currentWriter = new FileJournalWriter(fileName, nextRecordNumber);
            return(_currentWriter);
        }
示例#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;
        }
示例#3
0
 public FileJournalSubscriptionSource(FileJournalWriter journalWriter)
 {
     _journalWriter = journalWriter;
     _subscriptions = new Dictionary <Guid, JournalSubscription>();
     _journalWriter.RecordsWritten += OnRecordsWritten;
 }