Method Compose
- Namespace
- MailFathom.Application.Rules.History
- Assembly
- MailFathom.Application.dll
Compose(MailAccountId, StoredEmailId, MailRuleSetEvaluation, MailRuleExecutionTrigger, MailRuleActionRecording, DateTimeOffset)
Composes the executions one evaluated email leaves behind.
public static IReadOnlyList<MailRuleExecution> Compose(MailAccountId accountId, StoredEmailId storedEmailId, MailRuleSetEvaluation evaluation, MailRuleExecutionTrigger trigger, MailRuleActionRecording recording, DateTimeOffset evaluatedAt)
Parameters
accountIdMailAccountIdThe account whose mail was evaluated.
storedEmailIdStoredEmailIdThe local identity of the email.
evaluationMailRuleSetEvaluationWhat the rule set concluded, under the revision it concluded it.
triggerMailRuleExecutionTriggerWhich of the pass's two walks reached the email.
recordingMailRuleActionRecordingWhat opening mutation records for the plan produced.
evaluatedAtDateTimeOffsetThe instant the email was evaluated at.
Returns
- IReadOnlyList<MailRuleExecution>
One execution per rule the pass reached, in the order the rules were reached.
Exceptions
- ArgumentNullException
Thrown when an argument is null.