Table of Contents

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

cancellationToken CancellationToken

Propagates caller cancellation.

Returns

Task<bool>

true while a move is running; false when it is paused, finished, or was never asked for.

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.