Table of Contents

Constructor MailAnsweringSpendTracker

Namespace
MailFathom.Infrastructure.Observability
Assembly
MailFathom.Infrastructure.dll

MailAnsweringSpendTracker(MailAnsweringPeriodBounds, TimeProvider, ILogger<MailAnsweringSpendTracker>)

Initializes a ledger whose first period begins now, and the instruments it publishes through.

public MailAnsweringSpendTracker(MailAnsweringPeriodBounds bounds, TimeProvider timeProvider, ILogger<MailAnsweringSpendTracker> logger)

Parameters

bounds MailAnsweringPeriodBounds

What the runs of one period may add up to.

timeProvider TimeProvider

Decides when a period has elapsed.

logger ILogger<MailAnsweringSpendTracker>

Records that a period was spent, in counts alone.

Exceptions

ArgumentNullException

Thrown when an argument is null.