Method HasMoveToCarryAsync
- Namespace
- MailFathom.Application.EmailContent.Move
- Assembly
- MailFathom.Application.dll
HasMoveToCarryAsync(CancellationToken)
Reports whether the deployment has a move for a pass to carry.
public Task<bool> HasMoveToCarryAsync(CancellationToken cancellationToken)
Parameters
cancellationTokenCancellationTokenPropagates caller cancellation.
Returns
Remarks
The one read a replica makes before it asks for the move's lease, so a deployment that never moves its content pays a single-row read per interval and holds nothing. RunAsync(CancellationToken) reads the move again rather than trusting this answer, because an operator may pause it in between.
Exceptions
- PrincipalNotAuthorizedException
Thrown when anything but this deployment's own process reached the use case.