Method DeriveAsync
- Namespace
- MailFathom.Application.Contacts.Relationship
- Assembly
- MailFathom.Application.dll
DeriveAsync(ContactRelationshipBrief, CancellationToken)
Derives one card, or answers with nothing where none could be derived.
Task<ContactRelationship> DeriveAsync(ContactRelationshipBrief brief, CancellationToken cancellationToken)
Parameters
briefContactRelationshipBriefThe correlated correspondence and the language the card is written in.
cancellationTokenCancellationTokenCancels the derivation.
Returns
- Task<ContactRelationship>
The card, or Nothing where the allowance was spent, the provider failed, or the answer was unreadable.
Remarks
Nothing a derivation runs into travels as a failure, which is where this parts company with a drafted reply. A draft is what somebody pressed a button for, so a spent allowance has to be said out loud; a card arrives because a page was opened, and refusing the page over it would turn an operator's ceiling into a contact nobody can read. What a reader has for every one of those cases is the contact page without the card.
Exceptions
- SensitiveContentScannerUnavailableException
Thrown when a switched-on scanner could not establish what the correspondence carries, which withholds the derivation rather than sending text nothing scanned.