Interface IUserRecordFileLinks
- Namespace
- MailFathom.Application.StoredFiles
- Assembly
- MailFathom.Application.dll
Reads and writes the links a user's record holds to their stored files.
public interface IUserRecordFileLinks
Remarks
A link is a reference in the record's document, so writing one is a write of that document: it is judged by the rules every write of the record is judged by, including that a link naming a file the user does not own is refused, and it is committed over the version it was composed against.
Methods
- FindPortraitAsync(UserId, CancellationToken)
Reads the file one user's record links as their portrait.
- ReadLinkedFilesAsync(UserId, CancellationToken)
Reads every file one user's record links to.
- RelinkOwnPortraitAsync(StoredFileId?, CancellationToken)
Links the signed-in user's record to a portrait, or to none.