Constructor WatchedDiscoveryRun
- Namespace
- MailFathom.Application.Discovery.Streaming
- Assembly
- MailFathom.Application.dll
WatchedDiscoveryRun(DiscoveryRun, MailAnsweringRunLedger, MailAnsweringPeriodBounds, TimeProvider, AnsweringEndpointIdentity?)
Initializes the use case one watched run is performed through.
public WatchedDiscoveryRun(DiscoveryRun run, MailAnsweringRunLedger ledger, MailAnsweringPeriodBounds periodBounds, TimeProvider timeProvider, AnsweringEndpointIdentity? endpoint)
Parameters
runDiscoveryRunThe run itself, which decides what to retrieve and retrieves it.
ledgerMailAnsweringRunLedgerCounts what this run spends, which is one instance per run because the scope is the run.
periodBoundsMailAnsweringPeriodBoundsWhat the runs of one period may add up to, read for the instant a refused period turns over.
timeProviderTimeProviderMeasures the longest a run may take, and places a refusal in its period.
endpointAnsweringEndpointIdentityHow the answering endpoint is named to the person who asked, absent on a deployment that answers no questions.
Exceptions
- ArgumentNullException
Thrown when an argument but
endpointis null.