Table of Contents

Method EvaluateAsync

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

EvaluateAsync(MailRuleFacts, CancellationToken)

Evaluates the condition for one email.

Task<bool> EvaluateAsync(MailRuleFacts facts, CancellationToken cancellationToken)

Parameters

facts MailRuleFacts

The fact surface for the email being evaluated.

cancellationToken CancellationToken

Cancels the evaluation, and is what the evaluation timeout arrives through.

Returns

Task<bool>

Whether the email matches the condition.

Exceptions

OperationCanceledException

Thrown when the evaluation is cancelled or its timeout elapses.