Table of Contents

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

session IPersistenceSession

The transaction that stored the message.

account MailAccountId

The account the message arrived for.

email StoredEmailId

The stored message.

source LocalMailFolderArrivalSource

The source folder it arrived from.

cancellationToken CancellationToken

Propagates caller cancellation.

Returns

Task<bool>

Whether the placement created folders, which the caller announces through AnnounceFoldersChanged(MailAccountId) once the transaction commits.