Method RecordSourceRemovalObservedAsync
- Namespace
- MailFathom.Application.Mail.Mutations
- Assembly
- MailFathom.Application.dll
RecordSourceRemovalObservedAsync(IPersistenceSession, MailboxMutationRecordId, DateTimeOffset, CancellationToken)
Writes down that the source occurrence a mutation removed has been seen to leave its folder.
Task RecordSourceRemovalObservedAsync(IPersistenceSession session, MailboxMutationRecordId recordId, DateTimeOffset observedAt, CancellationToken cancellationToken)
Parameters
sessionIPersistenceSessionThe session the write joins, which is the one the window's outcome is applied in.
recordIdMailboxMutationRecordIdThe record the disappearance was attributed to.
observedAtDateTimeOffsetWhen the window read the folder.
cancellationTokenCancellationTokenCancels the write.
Returns
- Task
A task that completes when the observation is written.
Remarks
The first observation is kept, because what it says is when the disappearance was first accounted for.
Exceptions
- ArgumentNullException
Thrown when
sessionis null.- InvalidOperationException
Thrown when no record carries
recordId.