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
ownerUserIdThe user the file belongs to.
fileStoredFileIdThe file.
cancellationTokenCancellationTokenCancels the removal.
Returns
Remarks
Removing what is not there reports nothing, so a removal is safe to repeat.
Exceptions
- ArgumentException
Thrown when
ownerorfilenames nothing.