Table of Contents

Method Create

Namespace
MailFathom.Application.Emails.Mailboxes
Assembly
MailFathom.Application.dll

Create(EmailEnrichmentAspect?, DateTimeOffset?, DateTimeOffset?)

Validates and normalizes what a request asked of the readings a message carries.

public static EmailMarkSelection? Create(EmailEnrichmentAspect? aspect, DateTimeOffset? dueOnOrAfter, DateTimeOffset? dueBefore)

Parameters

aspect EmailEnrichmentAspect?

The reading the mark must be, or null for any reading.

dueOnOrAfter DateTimeOffset?

The inclusive start of the range the commitment falls due in, or null for no start.

dueBefore DateTimeOffset?

The exclusive end of that range, or null for no end.

Returns

EmailMarkSelection

The validated selection, or null where the request narrowed by no reading at all.

Remarks

A request naming none of the three is answered with null rather than with a selection that admits everything, so nothing narrows a list by a criterion that says nothing — and the canonical text of a list nobody narrowed this way stays what it was before this filter existed only where the wrapping selection says so.

Exceptions

ArgumentOutOfRangeException

Thrown when aspect is not a defined member.

MailboxQueryFilterInvalidException

Thrown when the due range can select nothing.