Table of Contents

Method ToIdempotencyKey

Namespace
MailFathom.Application.Jobs.Payloads
Assembly
MailFathom.Application.dll

ToIdempotencyKey()

Composes the identity that makes one pass run once.

public JobIdempotencyKey ToIdempotencyKey()

Returns

JobIdempotencyKey

The key.

Remarks

Neither an account's identifier nor a folder's alias carries a maximum length, so the two of them can compose a key longer than the store accepts — and they would do so inside the deletion that queues the pass, once the folder is already gone from the server and nothing is left to refuse. What is kept then is as much of the composed identity as fits beside a digest of the whole of it, so two folders whose identities share a prefix still enqueue two passes rather than one swallowing the other's mail.