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
taskPersonalTaskIdThe task to erase.
cancellationTokenCancellationTokenPropagates caller cancellation.
Returns
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.