Method SetCompletionAsync
- Namespace
- MailFathom.Application.Tasks
- Assembly
- MailFathom.Application.dll
SetCompletionAsync(UserId, PersonalTaskId, bool, CancellationToken)
Puts one of a person's tasks into a stated completion state.
Task<PersonalTaskChangeOutcome> SetCompletionAsync(UserId user, PersonalTaskId task, bool isCompleted, CancellationToken cancellationToken)
Parameters
userUserIdThe person whose task is changed, which is what scopes the write.
taskPersonalTaskIdThe task to change.
isCompletedboolThe completion state it is to stand in.
cancellationTokenCancellationTokenCancels the read and the write.
Returns
- Task<PersonalTaskChangeOutcome>
What became of the request.
Remarks
The user is part of the addressing rather than a filter applied after a lookup, so a task another person holds is not found rather than found and refused — which is what keeps the answer identical for one that does not exist at all.