Table of Contents

Method ReadScopeInForceAsync

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

ReadScopeInForceAsync(CancellationToken)

Reads which of the deployment's mailboxes classification runs for, as one value a walk can be narrowed by.

Task<SpamClassificationScope> ReadScopeInForceAsync(CancellationToken cancellationToken)

Parameters

cancellationToken CancellationToken

Cancels the read.

Returns

Task<SpamClassificationScope>

The scope in force now.

Remarks

The set-based shape of the same decision SettingsFor(MailAccountId) answers per account, read from the settings each account's document was read into when it was written. A walk over stored mail spans accounts and cannot ask about each of them in turn, so it reads this once and narrows by the accounts and folders it names.