Table of Contents

Class MailRuleEvaluation

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

What one rule concluded about one email, why it concluded nothing, and what the conclusion cost.

public sealed record MailRuleEvaluation : IEquatable<MailRuleEvaluation>
Inheritance
MailRuleEvaluation
Implements
Inherited Members

Remarks

The facts and the duration are carried because they are what the recorded history explains a decision from, and the evaluator is the only place either is observable: the facts a condition reached are known to the fact surface rather than to the text, and how long an answer took is known to whoever bounded it.

Properties

Duration

Gets how long the condition took to answer, including resolving the facts it read.

Failure

Gets why the rule produced no answer, which is absent for every rule that produced one.

Outcome

Gets what the rule concluded.

ReadFacts

Gets the facts the condition reached, in the order it first reached each.

RuleName

Gets the name of the rule this is about.

Methods

Failed(string, MailRuleConditionFailure, IReadOnlyList<MailRuleFact>?, TimeSpan)

Records that the condition produced no answer for this email.

Matched(string, IReadOnlyList<MailRuleFact>?, TimeSpan)

Records that the condition answered that the email matches.

NotMatched(string, IReadOnlyList<MailRuleFact>?, TimeSpan)

Records that the condition answered that the email does not match.