Method SummariseAsync
- Namespace
- MailFathom.Application.Calendar.Import
- Assembly
- MailFathom.Application.dll
SummariseAsync(Stream, CancellationToken)
Reports what a file would put on the acting person's calendar, writing nothing.
public Task<CalendarImportSummary> SummariseAsync(Stream file, CancellationToken cancellationToken)
Parameters
fileStreamThe octets the person chose.
cancellationTokenCancellationTokenPropagates caller cancellation.
Returns
- Task<CalendarImportSummary>
What the file would create, what it would skip and why, or why the whole file was refused.
Exceptions
- ArgumentNullException
Thrown when
fileis null.- PrincipalNotAuthorizedException
Thrown when the caller acts for no person, or its grant omits CalendarWrite.