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
exclusiveStartDateTimeOffsetThe instant the window opens after.
inclusiveEndDateTimeOffsetThe 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.