Method StartThreadAsync
- Namespace
- MailFathom.Application.Emails.Threads
- Assembly
- MailFathom.Application.dll
StartThreadAsync(IPersistenceSession, MailAccountId, CancellationToken)
Starts a conversation for the account and reports its identity.
Task<EmailThreadId> StartThreadAsync(IPersistenceSession session, MailAccountId accountId, CancellationToken cancellationToken)
Parameters
sessionIPersistenceSessionThe transaction the conversation is created in.
accountIdMailAccountIdThe account that owns it.
cancellationTokenCancellationTokenPropagates caller cancellation.
Returns
- Task<EmailThreadId>
The new conversation's identity.