Table of Contents

Method AcceptAsync

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

AcceptAsync(CalendarEventId, CancellationToken)

Takes a date the person's mail proposed onto their calendar, under the identity it already has.

public Task<CalendarEventWriteResult> AcceptAsync(CalendarEventId eventId, CancellationToken cancellationToken)

Parameters

eventId CalendarEventId

The proposal to accept.

cancellationToken CancellationToken

Propagates caller cancellation.

Returns

Task<CalendarEventWriteResult>

The event as the calendar now holds it, or why it was refused.

Remarks

Accepting an event already on the calendar is refused rather than answered as done, which is the domain's decision: the second acceptance is a caller acting on a proposal that was already taken, and reporting it as performed would move the record of when the event actually reached the calendar.

Exceptions

PrincipalNotAuthorizedException

Thrown when the caller acts for no person, or its grant omits CalendarWrite.