コード例 #1
0
        public override ICompletes <IJournalReader <TNewEntry>?> JournalReader <TNewEntry>(string name)
        {
            IJournalReader <TNewEntry>?reader = null;

            if (!_journalReaders.ContainsKey(name))
            {
                var entryReader = new InMemoryJournalReader <TEntry>(_journal, name);
                reader = entryReader as IJournalReader <TNewEntry>;
                _journalReaders.Add(name, entryReader);
            }

            return(Completes.WithSuccess(reader));
        }
コード例 #2
0
 public InMemoryJournalReaderActor(InMemoryJournalReader <TEntry> reader) => _reader = reader;