Table of Contents

Constructor MailRuleFacts

Namespace
MailFathom.Application.Rules.Facts
Assembly
MailFathom.Application.dll

MailRuleFacts(MailRuleEmailFacts, IMailRuleBodyTextReader, IMailFolderMappingReader, DateTimeOffset)

Initializes the fact surface for one email at one instant.

public MailRuleFacts(MailRuleEmailFacts email, IMailRuleBodyTextReader bodyTextReader, IMailFolderMappingReader folderMappings, DateTimeOffset evaluatedAt)

Parameters

email MailRuleEmailFacts

The metadata every fact but the body text and the folder's role is read from.

bodyTextReader IMailRuleBodyTextReader

Reads the extracted body text, and is called only when a condition names it.

folderMappings IMailFolderMappingReader

Answers what the folder the email is in is configured for, and is read only when a condition names the role.

evaluatedAt DateTimeOffset

The instant the whole rule set is evaluated at, which every age is measured against.

Exceptions

ArgumentNullException

Thrown when an argument is null.