Method ReadAsync
- Namespace
- MailFathom.Application.Emails.Search.Phrasing
- Assembly
- MailFathom.Application.dll
ReadAsync(MailSearchPhrase, CancellationToken)
Reads one sentence, answering with what a search made of it.
Task<MailSearchPhraseReading> ReadAsync(MailSearchPhrase phrase, CancellationToken cancellationToken)
Parameters
phraseMailSearchPhraseThe sentence and the day it was typed on.
cancellationTokenCancellationTokenCancels the reading.
Returns
- Task<MailSearchPhraseReading>
The reading, or Nothing where no reading could be made.
Remarks
A provider that failed or answered unreadably is not published as a failure: the caller already has a usable search for that case, which is the words the person typed. A refusal travels only where the deployment's own spend ceiling declined the call, because falling back there would spend the search on a call the operator had already said no to.