Table of Contents

Method SubmitScheduledAsync

Namespace
MailFathom.Application.Rules.Evaluation
Assembly
MailFathom.Application.dll

SubmitScheduledAsync(MailAccountId, CancellationToken)

Asks, on a rule's own declared occasion, for the account's scheduled rules to be run over its mailbox.

public Task<MailRuleEvaluationRunRequest> SubmitScheduledAsync(MailAccountId accountId, CancellationToken cancellationToken)

Parameters

accountId MailAccountId

The account to run the scheduled rules over.

cancellationToken CancellationToken

Cancels the write.

Returns

Task<MailRuleEvaluationRunRequest>

The run the account now has outstanding, and whether this occasion is what put it there.

Remarks

Any run already outstanding is the answer, whatever started it. A run somebody asked for reaches every rule this occasion wanted and more, and a scheduled run is the same walk arriving early, so both make a second walk of one mailbox work nobody needs — which is the guarantee the mechanism dispatching this occasion also makes about the job it enqueued.

Exceptions

PersistenceConcurrencyConflictException

Thrown when two requests raced past the bounded retries.

OperationCanceledException

Thrown when the caller cancels.