Table of Contents

Method Create

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

Create(IEnumerable<MailAccountId>, IEnumerable<MailFolderIdentity>, TimeSpan?)

Composes the deployment's scope from the users that classify and the folders they classify over.

public static SpamClassificationScope Create(IEnumerable<MailAccountId> classifyingAccounts, IEnumerable<MailFolderIdentity> classifiedFolders, TimeSpan? maximumClassificationWait = null)

Parameters

classifyingAccounts IEnumerable<MailAccountId>

The accounts of every user whose classification is switched on.

classifiedFolders IEnumerable<MailFolderIdentity>

The folders those accounts are classified over.

maximumClassificationWait TimeSpan?

The deployment's wait, or null for the default.

Returns

SpamClassificationScope

The scope, with both lists deduplicated and ordered.

Exceptions

ArgumentNullException

Thrown when either sequence is null.

ArgumentOutOfRangeException

Thrown when the wait is not positive.