Table of Contents

Method SuggestAsync

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

SuggestAsync(DateTimeOffset, DateTimeOffset, CancellationToken)

Suggests how the signed-in person's day could be arranged.

public Task<DayLayoutDerivation?> SuggestAsync(DateTimeOffset dayStart, DateTimeOffset dayEnd, CancellationToken cancellationToken)

Parameters

dayStart DateTimeOffset

The instant their day opens.

dayEnd DateTimeOffset

The instant it closes.

cancellationToken CancellationToken

Propagates caller cancellation.

Returns

Task<DayLayoutDerivation>

The arrangement or the reason there is none, or null where what was asked for is not a day this deployment arranges.

Remarks

The deployment's state is asked first, so an instance that lays out no day reads nobody's tasks and nobody's calendar to say so. What is laid out is what the person owes and has not done by that day — a task they have already completed is not work the day has to hold, and one mail proposed and nobody accepted is not work they owe at all, which is why only the committed half is read.

Exceptions

PrincipalNotAuthorizedException

Thrown when the caller acts for no person, or its grant omits AssistantUse, TasksRead, or CalendarRead.

OperationCanceledException

Thrown when the caller cancels.