Method KeyOf
- Namespace
- MailFathom.Application.Mail.Maintenance
- Assembly
- MailFathom.Application.dll
KeyOf(StoredMailRederivationRun)
Composes the identity two enqueues of one segment of one run are compared by.
public static JobIdempotencyKey KeyOf(StoredMailRederivationRun run)
Parameters
runStoredMailRederivationRunThe run whose current segment is being enqueued.
Returns
- JobIdempotencyKey
The key that segment's job is enqueued under.
Remarks
The folder rather than the whole scope, and the reason is a bound rather than a preference: a key may be 256 characters, while an account identifier and a folder alias may each be 128, so a composition of both plus the run and the segment can exceed it — and a key that cannot be composed would refuse a request that is perfectly ordinary. Nothing is lost, because the account is a column of the job's own row: an operator reading a stuck job sees the account there and the folder here, and the two together are the scope.
Exceptions
- ArgumentNullException
Thrown when
runis null.