Table of Contents

Method ReadAsync

Namespace
MailFathom.Application.StoredFiles
Assembly
MailFathom.Application.dll

ReadAsync(UserId, StoredFileId, CancellationToken)

Reads the octets of one file of one user.

Task<ReadOnlyMemory<byte>?> ReadAsync(UserId owner, StoredFileId file, CancellationToken cancellationToken)

Parameters

owner UserId

The user the file belongs to.

file StoredFileId

The file.

cancellationToken CancellationToken

Cancels the read.

Returns

Task<ReadOnlyMemory<byte>?>

The octets, or null when this deployment holds no such file for that user.

Exceptions

ArgumentException

Thrown when owner or file names nothing.