Table of Contents

Method TryEnqueue

Namespace
MailFathom.Application.Emails.Embeddings.Generation
Assembly
MailFathom.Application.dll

TryEnqueue(StoredEmailId)

Offers one durable message to the worker, refusing the offer when the backlog is full.

bool TryEnqueue(StoredEmailId storedEmailId)

Parameters

storedEmailId StoredEmailId

The message whose passages are ready to be embedded.

Returns

bool

true when the message was taken; false when the bound refused it.

Remarks

Never blocks and never waits. A caller that has just committed a message is holding no transaction open, but it is holding an IMAP session, and a backlog that made it wait would turn a slow provider into a slow mailbox.