Table of Contents

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

phase MailSynchronizationPhase

Which stage is beginning.

cancellationToken CancellationToken

The 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.