Table of Contents

Method EraseAsync

Namespace
MailFathom.Application.Tasks
Assembly
MailFathom.Application.dll

EraseAsync(PersonalTaskId, CancellationToken)

Erases one of the signed-in person's tasks.

public Task<bool> EraseAsync(PersonalTaskId task, CancellationToken cancellationToken)

Parameters

task PersonalTaskId

The task to erase.

cancellationToken CancellationToken

Propagates caller cancellation.

Returns

Task<bool>

true when a task was erased, and false when this person held none.

Remarks

One act rather than two, whichever origin the task carries: deleting something a person owes and dismissing something mail suggested leave the same list behind, and a second name for the same erasure would be a route whose only difference was the word a screen puts on the button.

Exceptions

PrincipalNotAuthorizedException

Thrown when the caller acts for no user, or its grant omits TasksWrite.