Table of Contents

Method HoldsAsync

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

HoldsAsync(UserId, StoredFileId, CancellationToken)

Reports whether this deployment holds one file for one user, without reading its octets.

Task<bool> HoldsAsync(UserId owner, StoredFileId file, CancellationToken cancellationToken)

Parameters

owner UserId

The user the file would belong to.

file StoredFileId

The file.

cancellationToken CancellationToken

Cancels the read.

Returns

Task<bool>

true when the file exists and belongs to owner.

Exceptions

ArgumentException

Thrown when owner or file names nothing.