Class DiscoveryRunReading
- Namespace
- MailFathom.Application.Discovery.Streaming
- Assembly
- MailFathom.Application.dll
One read of a run: where the run stands, and everything it has written past the cursor the reader held.
public sealed record DiscoveryRunReading : IEquatable<DiscoveryRunReading>
- Inheritance
-
DiscoveryRunReading
- Implements
- Inherited Members
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.
Constructors
- DiscoveryRunReading(bool, IReadOnlyList<DiscoveryRunEvent>)
One read of a run: where the run stands, and everything it has written past the cursor the reader held.
Properties
- Events
Everything after the stated cursor, in sequence order, and empty where the reader was already caught up.
- Running
Whether the run is still executing, which is what tells a client watching it that more is coming.