Table of Contents

Method CountOccurrencesIn

Namespace
MailFathom.Application.Jobs.Scheduling
Assembly
MailFathom.Application.dll

CountOccurrencesIn(DateTimeOffset, DateTimeOffset)

Counts the occasions that fall in a window, which is how many a dispatch is passing over.

public int CountOccurrencesIn(DateTimeOffset exclusiveStart, DateTimeOffset inclusiveEnd)

Parameters

exclusiveStart DateTimeOffset

The instant the window opens after.

inclusiveEnd DateTimeOffset

The last instant the window holds.

Returns

int

How many occasions the window holds, and zero when it holds none or is empty.

Remarks

Counted from the two ends rather than by walking them, so a process that was down for a year answers as cheaply as one that was down for a minute — which matters because this count is what a skipped occasion is reported by.