Table of Contents

Method Create

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

Create(MailAccountId, string?, StoredEmailId?, DateTimeOffset?, DateTimeOffset?, int?, MailRuleExecutionCursor?)

Builds a validated query from what a caller asked for, or reports why the request names no page.

public static MailRuleExecutionQueryResult Create(MailAccountId accountId, string? ruleName, StoredEmailId? storedEmailId, DateTimeOffset? evaluatedFrom, DateTimeOffset? evaluatedBefore, int? pageSize, MailRuleExecutionCursor? cursor)

Parameters

accountId MailAccountId

The account whose history is read.

ruleName string

The rule to narrow to, or null for every rule.

storedEmailId StoredEmailId?

The email to narrow to, or null for every email.

evaluatedFrom DateTimeOffset?

The earliest evaluation instant served, inclusive, or null for none.

evaluatedBefore DateTimeOffset?

The evaluation instant to stop before, exclusive, or null for none.

pageSize int?

How many executions the page may hold, or null for DefaultPageSize.

cursor MailRuleExecutionCursor?

The boundary a continued walk reads beyond, or null for the first page.

Returns

MailRuleExecutionQueryResult

The accepted query, or the refusal naming what the caller has to change.