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
accountIdMailAccountIdThe account whose history is read.
ruleNamestringThe rule to narrow to, or null for every rule.
storedEmailIdStoredEmailId?The email to narrow to, or null for every email.
evaluatedFromDateTimeOffset?The earliest evaluation instant served, inclusive, or null for none.
evaluatedBeforeDateTimeOffset?The evaluation instant to stop before, exclusive, or null for none.
pageSizeint?How many executions the page may hold, or null for DefaultPageSize.
cursorMailRuleExecutionCursor?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.