Table of Contents

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

run DiscoveryRun

The run itself, which decides what to retrieve and retrieves it.

ledger MailAnsweringRunLedger

Counts what this run spends, which is one instance per run because the scope is the run.

periodBounds MailAnsweringPeriodBounds

What the runs of one period may add up to, read for the instant a refused period turns over.

timeProvider TimeProvider

Measures the longest a run may take, and places a refusal in its period.

endpoint AnsweringEndpointIdentity

How 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 endpoint is null.