Method Failed
- Namespace
- MailFathom.Application.Rules
- Assembly
- MailFathom.Application.dll
Failed(string, MailRuleConditionFailure, IReadOnlyList<MailRuleFact>?, TimeSpan)
Records that the condition produced no answer for this email.
public static MailRuleEvaluation Failed(string ruleName, MailRuleConditionFailure failure, IReadOnlyList<MailRuleFact>? readFacts = null, TimeSpan duration = default)
Parameters
ruleNamestringThe rule's name.
failureMailRuleConditionFailureWhy no answer was produced.
readFactsIReadOnlyList<MailRuleFact>The facts the condition reached before it stopped answering.
durationTimeSpanHow long the condition ran before it stopped answering.
Returns
- MailRuleEvaluation
The evaluation.
Exceptions
- ArgumentException
Thrown when
ruleNameis empty or whitespace.