Table of Contents

Class TodayLayout

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

Arranges the signed-in person's day when they ask for it, and changes nothing by doing so.

public sealed class TodayLayout
Inheritance
TodayLayout
Inherited Members

Remarks

Once per request and never otherwise. Nothing schedules this, no pass reaches it, and opening a screen does not run it: it is the one act behind a control somebody presses, so what a deployment spends on arranging days is what its people asked for.

It applies nothing. What comes back is read by the screen that asked and is forgotten unless the person acts on it. No task is rescheduled, no proposal is accepted, and no event is written — every one of those is an act of their own through the route that owns it, and this route holds no write at all.

Both halves are read through the readings that own them rather than through queries of this use case's own: the tasks through OwnTasks and the day's commitments through OwnCalendar. Each of those resolves the person from the principal, narrows to what they hold, and decides what a window may ask for, so an arrangement is decided from exactly what the person's own screens would have drawn — and a day cannot be laid out from somebody else's calendar, because there is no way here to name one.

Whose day it is says when the day begins. This deployment keeps no timezone for a person, so the window is stated by the client exactly as it states the window it draws the calendar with, and the day a task is compared against is the one the opening instant falls on in the offset it carries.

Constructors

TodayLayout(AccessAuthorization, OwnTasks, OwnCalendar, IDayLayoutPlanner, SensitiveContentEgressGuard)

Initializes the use case.

Fields

MaximumCommitments

The greatest number of commitments one arrangement is decided against.

MaximumDaySpan

The longest window one request may call a day.

MaximumTasks

The greatest number of tasks one arrangement is decided from.

Methods

SuggestAsync(DateTimeOffset, DateTimeOffset, CancellationToken)

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