Method FindAsync
- Namespace
- MailFathom.Application.Tasks
- Assembly
- MailFathom.Application.dll
FindAsync(PersonalTaskId, CancellationToken)
Reads one of the signed-in person's tasks.
public Task<PersonalTask?> FindAsync(PersonalTaskId task, CancellationToken cancellationToken)
Parameters
taskPersonalTaskIdThe task to read.
cancellationTokenCancellationTokenPropagates caller cancellation.
Returns
- Task<PersonalTask>
The task, or null when this person holds none under that identity.
Exceptions
- PrincipalNotAuthorizedException
Thrown when the caller acts for no user, or its grant omits TasksRead.