Method BeginPhase
- Namespace
- MailFathom.Application.Observability
- Assembly
- MailFathom.Application.dll
BeginPhase(MailSynchronizationPhase, CancellationToken)
Opens the report of one stage of a folder run, and publishes it when the returned scope is disposed.
IMailSynchronizationPhaseScope BeginPhase(MailSynchronizationPhase phase, CancellationToken cancellationToken)
Parameters
phaseMailSynchronizationPhaseWhich stage is beginning.
cancellationTokenCancellationTokenThe run's token, read as the scope is disposed to tell shutdown from a failure.
Returns
- IMailSynchronizationPhaseScope
The scope, which the caller must dispose exactly once and which the stage must be conducted inside.