Constructor DiscoveryRunReading
- Namespace
- MailFathom.Application.Discovery.Streaming
- Assembly
- MailFathom.Application.dll
DiscoveryRunReading(bool, IReadOnlyList<DiscoveryRunEvent>)
One read of a run: where the run stands, and everything it has written past the cursor the reader held.
public DiscoveryRunReading(bool Running, IReadOnlyList<DiscoveryRunEvent> Events)
Parameters
RunningboolWhether the run is still executing, which is what tells a client watching it that more is coming.
EventsIReadOnlyList<DiscoveryRunEvent>Everything after the stated cursor, in sequence order, and empty where the reader was already caught up.
Remarks
Both halves together are what makes one route serve the first read and every later one. A client holding nothing reads from the beginning and is given the run so far; a client holding a cursor is given the tail; and either of them is told in the same answer whether to expect more.
A run that does not exist, has been forgotten, or belongs to somebody else is not a value of this type — the read reports no such run instead, which is one answer rather than a third state to read this apart from.