Method BeginAccountRun
- Namespace
- MailFathom.Infrastructure.Observability
- Assembly
- MailFathom.Infrastructure.dll
BeginAccountRun(MailAccountId)
Opens the span one account's synchronization cycle is reported as, and returns the scope that ends it.
public MailSynchronizationTelemetry.AccountRunScope BeginAccountRun(MailAccountId accountId)
Parameters
accountIdMailAccountIdThe account whose cycle is beginning.
Returns
- MailSynchronizationTelemetry.AccountRunScope
The scope, which the caller must dispose; a scope disposed without Completed(int, int, bool) reports an interrupted cycle.