Table of Contents

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

task PersonalTaskId

The task to change.

isCompleted bool

The completion state it is to stand in.

cancellationToken CancellationToken

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