Table of Contents

Method AcceptAsync

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

AcceptAsync(PersonalTaskId, CancellationToken)

Turns one of the signed-in person's proposals into a task they owe.

public Task<PersonalTask?> AcceptAsync(PersonalTaskId task, CancellationToken cancellationToken)

Parameters

task PersonalTaskId

The task to accept.

cancellationToken CancellationToken

Propagates caller cancellation.

Returns

Task<PersonalTask>

The task as it now stands, or null when this person holds none under that identity.

Remarks

A task already asserted is the state the caller asked for rather than an error, so accepting twice is answered as done. Dismissing a proposal is the erasure instead: what a person declines is not a task they owe, and keeping a declined row would leave a list whose every reader had to remember to exclude it.

Exceptions

PrincipalNotAuthorizedException

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