Table of Contents

Method FindAsync

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

FindAsync(UserId, PersonalTaskId, CancellationToken)

Reads one of a person's tasks by the identity it was addressed under.

Task<PersonalTask?> FindAsync(UserId user, PersonalTaskId task, CancellationToken cancellationToken)

Parameters

user UserId

The person whose task is read, which is what scopes the read.

task PersonalTaskId

The task to read.

cancellationToken CancellationToken

Cancels the read.

Returns

Task<PersonalTask>

The task, or null when this user holds none under that identity.

Remarks

The user is part of the addressing rather than a filter applied after a lookup, exactly as it is on every write here, so a task another person holds is not found rather than found and refused. That is what keeps this from reporting whose tasks exist beside the caller's own.