Table of Contents

Method DraftFromDescriptionAsync

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

DraftFromDescriptionAsync(CalendarEventDescription, CancellationToken)

Reads one typed sentence into the single event it describes.

Task<CalendarEventExtraction> DraftFromDescriptionAsync(CalendarEventDescription description, CancellationToken cancellationToken)

Parameters

description CalendarEventDescription

The sentence, and the instant whoever typed it is standing on.

cancellationToken CancellationToken

Propagates caller cancellation.

Returns

Task<CalendarEventExtraction>

The one event the sentence described, or none where it described nothing readable as one.

Remarks

At most one event, which is what separates this half from the other: somebody describing a meeting is describing one, and a sentence read into three would fill a calendar with two nobody meant.

Exceptions

ArgumentNullException

Thrown when description is null.

OperationCanceledException

Thrown when the caller cancels.