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
classifyingAccountsIEnumerable<MailAccountId>The accounts of every user whose classification is switched on.
classifiedFoldersIEnumerable<MailFolderIdentity>The folders those accounts are classified over.
maximumClassificationWaitTimeSpan?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.