Method NewAttempt
- Namespace
- MailFathom.Application.Jobs
- Assembly
- MailFathom.Application.dll
NewAttempt()
Creates an owner for a new attempt, unique across every process that shares the database.
public static JobLeaseOwner NewAttempt()
Returns
- JobLeaseOwner
A lease owner nothing else will produce.
Remarks
A random identity rather than a host name and a counter, because two replicas of one deployment are the case the compare-and-set exists for and neither can see what the other allocated. It is not a security token, so the ordinary UUID generator is what this needs.