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)); }
public InMemoryJournalReaderActor(InMemoryJournalReader <TEntry> reader) => _reader = reader;