Table of Contents

Method RemoveAsync

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

RemoveAsync(UserId, StoredFileId, CancellationToken)

Removes one file of one user, the row with the commit and the object immediately afterwards.

Task RemoveAsync(UserId owner, StoredFileId file, CancellationToken cancellationToken)

Parameters

owner UserId

The user the file belongs to.

file StoredFileId

The file.

cancellationToken CancellationToken

Cancels the removal.

Returns

Task

Remarks

Removing what is not there reports nothing, so a removal is safe to repeat.

Exceptions

ArgumentException

Thrown when owner or file names nothing.