Table of Contents

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

user UserId

The person whose task is changed, which is what scopes the write.

task PersonalTaskId

The task to change.

isCompleted bool

The completion state it is to stand in.

cancellationToken CancellationToken

Cancels 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.