Table of Contents

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

ruleName string

The rule's name.

failure MailRuleConditionFailure

Why no answer was produced.

readFacts IReadOnlyList<MailRuleFact>

The facts the condition reached before it stopped answering.

duration TimeSpan

How long the condition ran before it stopped answering.

Returns

MailRuleEvaluation

The evaluation.

Exceptions

ArgumentException

Thrown when ruleName is empty or whitespace.