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
emailMailRuleEmailFactsThe metadata every fact but the body text and the folder's role is read from.
bodyTextReaderIMailRuleBodyTextReaderReads the extracted body text, and is called only when a condition names it.
folderMappingsIMailFolderMappingReaderAnswers what the folder the email is in is configured for, and is read only when a condition names the role.
evaluatedAtDateTimeOffsetThe instant the whole rule set is evaluated at, which every age is measured against.
Exceptions
- ArgumentNullException
Thrown when an argument is null.