Method SetCompletionAsync
- Namespace
- MailFathom.Application.Tasks
- Assembly
- MailFathom.Application.dll
SetCompletionAsync(PersonalTaskId, bool, CancellationToken)
Puts one of the signed-in person's tasks into a stated completion state.
public Task<PersonalTask?> SetCompletionAsync(PersonalTaskId task, bool isCompleted, CancellationToken cancellationToken)
Parameters
taskPersonalTaskIdThe task to change.
isCompletedboolThe completion state it is to stand in.
cancellationTokenCancellationTokenPropagates caller cancellation.
Returns
- Task<PersonalTask>
The task as it now stands, or null when this person holds none under that identity.
Exceptions
- PrincipalNotAuthorizedException
Thrown when the caller acts for no user, or its grant omits TasksWrite.