Class MailSynchronizationTelemetry.AccountRunScope
- Namespace
- MailFathom.Infrastructure.Observability
- Assembly
- MailFathom.Infrastructure.dll
Carries one account's cycle from the moment it takes a slot to the outcome that ends it.
public sealed class MailSynchronizationTelemetry.AccountRunScope : IDisposable
- Inheritance
-
MailSynchronizationTelemetry.AccountRunScope
- Implements
- Inherited Members
Remarks
A cycle that never reported an outcome is published as interrupted rather than as failed. Shutdown is what produces one, and counting it as a failure would make every restart look like an account that stopped working.
Properties
- Elapsed
Gets how long the cycle has been running, which is its duration once the work is done.
Methods
- Completed(int, int, bool)
Records what the cycle turned out to have done.
- Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.