Method Matched
- Namespace
- MailFathom.Application.Rules
- Assembly
- MailFathom.Application.dll
Matched(string, IReadOnlyList<MailRuleFact>?, TimeSpan)
Records that the condition answered that the email matches.
public static MailRuleEvaluation Matched(string ruleName, IReadOnlyList<MailRuleFact>? readFacts = null, TimeSpan duration = default)
Parameters
ruleNamestringThe rule's name.
readFactsIReadOnlyList<MailRuleFact>The facts the condition reached, or null where the caller observed none.
durationTimeSpanHow long the condition took to answer.
Returns
- MailRuleEvaluation
The evaluation.
Exceptions
- ArgumentException
Thrown when
ruleNameis empty or whitespace.