Table of Contents

Method EnterRunQueue

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

EnterRunQueue()

Counts one account run as waiting for a slot until the returned scope is disposed.

public IDisposable EnterRunQueue()

Returns

IDisposable

The scope, which the caller disposes as soon as the wait ends however it ended.

Remarks

The wait is counted rather than spanned, because a run that has not started is not work a trace can attribute anything to. What an operator needs from it is a level: how many accounts are queued behind the bound right now.