Table of Contents

Method ReadAsync

Namespace
MailFathom.Application.Contacts.Relationship
Assembly
MailFathom.Application.dll

ReadAsync(Contact, CancellationToken)

Derives where the correspondence with one of the acting user's own contacts stands.

public Task<ContactRelationship> ReadAsync(Contact contact, CancellationToken cancellationToken)

Parameters

contact Contact

The contact, as the caller's own book answered it.

cancellationToken CancellationToken

Propagates caller cancellation.

Returns

Task<ContactRelationship>

The card, or Nothing where none was derived.

Remarks

The grant asked here is the one that puts something in front of a chat provider rather than the one that reads mail, because that is what this adds. The read grant is asked by the correlation below, which is the use case that publishes mail, so a caller granted one and not the other is refused naming the grant they are missing.

Exceptions

ArgumentNullException

Thrown when contact is null.

PrincipalNotAuthorizedException

Thrown when the use case was reached by anything but a caller granted both AssistantUse and MailRead.

SensitiveContentScannerUnavailableException

Thrown when a switched-on scanner could not establish what the correspondence or the card carries, which withholds it rather than publishing it unscanned.