Method ProposeFromEmailAsync
- Namespace
- MailFathom.Application.Calendar.Extraction
- Assembly
- MailFathom.Application.dll
ProposeFromEmailAsync(EnrichableEmail, CancellationToken)
Reads one message into the events it names, none of which anybody has agreed to.
Task<CalendarEventExtraction> ProposeFromEmailAsync(EnrichableEmail email, CancellationToken cancellationToken)
Parameters
emailEnrichableEmailThe message and the passages the reading is shown.
cancellationTokenCancellationTokenPropagates caller cancellation.
Returns
- Task<CalendarEventExtraction>
The events the message named, which is empty where it named none, or the reason nothing was read.
Remarks
It is shown the message the enrichment pass composed rather than one of its own, because the two readings want exactly the same thing of a message — its subject, when it arrived, and the opening of its text — and a second selection would be a second query over the same rows for the same columns.
Exceptions
- ArgumentNullException
Thrown when
emailis null.- OperationCanceledException
Thrown when the caller cancels.