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
ownerUserIdThe user the file belongs to.
fileStoredFileIdThe file.
cancellationTokenCancellationTokenCancels the read.
Returns
- Task<ReadOnlyMemory<byte>?>
The octets, or null when this deployment holds no such file for that user.
Exceptions
- ArgumentException
Thrown when
ownerorfilenames nothing.