Method ReadAsync
- Namespace
- MailFathom.Application.Calendar.Extraction
- Assembly
- MailFathom.Application.dll
ReadAsync(EnrichableEmail, CancellationToken)
Reads one message into the events it names, without writing any of them.
public Task<CalendarEventExtraction> ReadAsync(EnrichableEmail email, CancellationToken cancellationToken)
Parameters
emailEnrichableEmailThe message the reading is shown.
cancellationTokenCancellationTokenPropagates caller cancellation.
Returns
- Task<CalendarEventExtraction>
The events the message named, or the reason nothing was read.
Remarks
Outside any transaction, because it is a provider call: a read held inside one would hold a database connection for as long as an endpoint takes to answer.
Exceptions
- ArgumentNullException
Thrown when
emailis null.