Class DiscoveryRunCompleted
- Namespace
- MailFathom.Application.Discovery.Streaming
- Assembly
- MailFathom.Application.dll
The run finished, and this is what it knows about its own reach.
public sealed record DiscoveryRunCompleted : DiscoveryRunEvent, IEquatable<DiscoveryRunEvent>, IEquatable<DiscoveryRunCompleted>
- Inheritance
-
DiscoveryRunCompleted
- Implements
- Inherited Members
Remarks
A run that composed no block still completes rather than failing. A mailbox holding nothing on the subject is an answer, and reporting it as a failure would tell somebody to ask again.
All three are statements about the whole run rather than about any one block, which is why they arrive here instead of as events of their own: none is known until the composition has finished, and a client holding the ending holds the last parts of the plan it has been assembling.
The final counts stay with the result rather than with the application, which is ADR 0022's placement: a cost figure in permanent chrome teaches people to watch a meter while they work, and one on the answer is legible exactly when somebody asks whether that answer was expensive.
Constructors
- DiscoveryRunCompleted(IReadOnlyList<PresentationLimitation>, IReadOnlyList<AccountCoverage>, MailAnsweringRunSpend)
The run finished, and this is what it knows about its own reach.
Fields
- Kind
The value the type discriminator carries on the wire.
Properties
- Coverage
What the run read, one entry per account its scope reached.
- EndsTheRun
Gets whether this event ends the run, after which nothing further is published for it.
- EventName
Gets the name this event is published under, which is the value the type discriminator carries.
- Limitations
What made the answer narrower than the question, and empty where nothing did.
- Spend
What the run consumed in total, against the ceilings the start named.