Method PlaceAsync
- Namespace
- MailFathom.Application.Folders.Local
- Assembly
- MailFathom.Application.dll
PlaceAsync(IPersistenceSession, MailAccountId, StoredEmailId, LocalMailFolderArrivalSource, CancellationToken)
Places one stored message, inside the transaction that stored it.
public Task<bool> PlaceAsync(IPersistenceSession session, MailAccountId account, StoredEmailId email, LocalMailFolderArrivalSource source, CancellationToken cancellationToken)
Parameters
sessionIPersistenceSessionThe transaction that stored the message.
accountMailAccountIdThe account the message arrived for.
emailStoredEmailIdThe stored message.
sourceLocalMailFolderArrivalSourceThe source folder it arrived from.
cancellationTokenCancellationTokenPropagates caller cancellation.
Returns
- Task<bool>
Whether the placement created folders, which the caller announces through AnnounceFoldersChanged(MailAccountId) once the transaction commits.