Table of Contents

Interface IPersonalTaskStore

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

Keeps what a person owes, native to this deployment.

public interface IPersonalTaskStore

Remarks

Every reader and every producer goes through this port rather than the table, which is what keeps a proposal one row: a stage that composed its own insert would write a second task when the person accepted the first, and two producers deciding that separately is how a list starts showing the same commitment twice.

Methods

AcceptAsync(UserId, PersonalTaskId, CancellationToken)

Turns one of a person's proposals into a task they owe.

AddAsync(PersonalTask, CancellationToken)

Keeps one task.

EraseAsync(UserId, PersonalTaskId, CancellationToken)

Erases one of a person's tasks.

FindAsync(UserId, PersonalTaskId, CancellationToken)

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

ReadAsync(UserId, PersonalTaskOrigin?, PersonalTaskCursor?, int, CancellationToken)

Reads one bounded page of a person's tasks, soonest due first.

ReviseAsync(PersonalTask, CancellationToken)

Writes what a person edited about one of their tasks.

SetCompletionAsync(UserId, PersonalTaskId, bool, CancellationToken)

Puts one of a person's tasks into a stated completion state.