Table of Contents

Class SpamClassificationRunRequests

Namespace
MailFathom.Application.Spam.Runs
Assembly
MailFathom.Application.dll

Takes a request to classify an account's whole mailbox, and answers one that is already under way.

public sealed class SpamClassificationRunRequests
Inheritance
SpamClassificationRunRequests
Inherited Members

Remarks

The request is recorded and nothing is classified here. Carrying the run is a step of the account's synchronization run, so what this writes is the statement that the run is wanted; the request thread neither performs the work nor keeps it alive, which is what stops an operator's terminal closing from cancelling a walk of their mailbox and what makes the answer immediate however large that mailbox is.

A second request while one is outstanding is answered with the run already in front of the account rather than refused or queued. Asking twice for the same thing is asking once: what the caller wanted is for the mail to be classified, and it is going to be.

Constructors

SpamClassificationRunRequests(ISpamClassificationRunStore, OptimisticConcurrencyRetryPolicy, TimeProvider)

Initializes the request intake.

Methods

SubmitAsync(MailAccountId, SpamClassificationRunTerms, CancellationToken)

Asks for every message stored for the account to be classified on the terms given.