Method Observe
- Namespace
- MailFathom.Application.EmailContent.Storage
- Assembly
- MailFathom.Application.dll
Observe(long, long)
Adopts a fresh measurement of what storage holds.
public void Observe(long measuredBytes, long claimMark)
Parameters
measuredByteslongWhat the content store reported occupying.
claimMarklongThe value ClaimMark held before the measurement was taken.
Remarks
Bytes claimed after the measurement began are added on top of it, because the measurement cannot describe writes that had not happened when it was taken. A measurement older than one already adopted is discarded rather than applied, so two runs measuring at once cannot make the newer reading lose to the slower query.
Exceptions
- ArgumentOutOfRangeException
Thrown when
measuredBytesis negative.