Method DiscoveryRunAdvanced
- Namespace
- MailFathom.Application.Signals
- Assembly
- MailFathom.Application.dll
DiscoveryRunAdvanced(UserId, DiscoveryRunId, long)
States that a Discover run has written more of its answer, and how far it has got.
public static ClientSignal DiscoveryRunAdvanced(UserId user, DiscoveryRunId run, long sequence)
Parameters
userUserIdWhose run it is, which is whose connections are told — every one that person holds rather than only the one that asked.
runDiscoveryRunIdThe run that advanced, which is the run the client re-reads.
sequencelongThe sequence the run has reached, which is the cursor a client already past reads nothing from.
Returns
- ClientSignal
The signal.
Remarks
It carries no part of the answer, and that is the whole shape of it: no block, no citation, no retrieval count, no spend figure, no model name, and no alias. An answer quotes mail by construction, and this is the one kind whose subject is mail-derived — so what crosses is a run identifier and a number, and the answer is read back over the run's own route. Widening it is what ADR 0035 refuses, because the backplane this crosses may be a service the deployment does not run.
Exceptions
- ArgumentOutOfRangeException
Thrown when
sequenceis not positive, a run having reached nothing being no advance.