Method ReadAsync
- Namespace
- MailFathom.Application.Calendar
- Assembly
- MailFathom.Application.dll
ReadAsync(UserId, CalendarEventId, CancellationToken)
Reads one event of somebody's calendar.
Task<CalendarEvent?> ReadAsync(UserId owner, CalendarEventId eventId, CancellationToken cancellationToken)
Parameters
ownerUserIdThe person whose calendar is read.
eventIdCalendarEventIdThe event to read.
cancellationTokenCancellationTokenCancels the read.
Returns
- Task<CalendarEvent>
The event, or null when that calendar holds no such event.
Exceptions
- ArgumentException
Thrown when
ownernames nobody.