Table of Contents

Interface ICalendarEventExtractor

Namespace
MailFathom.Application.Calendar.Extraction
Assembly
MailFathom.Application.dll

Reads text into the calendar events it names: what a message said, and what a person typed.

public interface ICalendarEventExtractor

Remarks

One port and one reading for both, because they are the same operation run against two different inputs. What differs is where the text came from and what the caller does with the answer, and neither of those is a reason for two readings of a date — a second one would be a second set of rules about what Tuesday at three means.

Neither half ever produces an event somebody holds. A message's events are written as proposals for a person to accept or dismiss, and a description's draft is handed back to whoever typed it and stored only if they save it. There is no path from here to an asserted event.

An implementation is registered for every deployment, including one that reads no text at all — the answer a caller needs is a reason it can act on, and a missing registration would have made every caller carry a null check and decide for itself what an absence meant.

It never throws for a provider that failed. Every way an extraction can come to nothing is a member of CalendarEventExtractionWithholding, because the caller's response to each is the same shape. Caller cancellation is the exception and propagates, being the caller withdrawing the work rather than anything about the text.

Properties

IsActive

Gets whether this deployment reads text into calendar events at all.

Methods

DraftFromDescriptionAsync(CalendarEventDescription, CancellationToken)

Reads one typed sentence into the single event it describes.

ProposeFromEmailAsync(EnrichableEmail, CancellationToken)

Reads one message into the events it names, none of which anybody has agreed to.