Table of Contents

Method ReadAsync

Namespace
MailFathom.Application.Portraits
Assembly
MailFathom.Application.dll

ReadAsync(CancellationToken)

Reads the picture the signed-in person is drawn by.

public Task<UserPortrait?> ReadAsync(CancellationToken cancellationToken)

Parameters

cancellationToken CancellationToken

Propagates caller cancellation.

Returns

Task<UserPortrait>

Their portrait, or null where this deployment holds none for them.

Exceptions

PrincipalNotAuthorizedException

Thrown when the caller acts for no user, or its grant omits ProfileRead.