Method Of
- Namespace
- MailFathom.Application.Mail.Delivery.Operations
- Assembly
- MailFathom.Application.dll
Of(IReadOnlyList<OutboxStageCount>)
Composes the summary from what a store counted, filling in the stages it counted nothing at.
public static OutboxSummary Of(IReadOnlyList<OutboxStageCount> counted)
Parameters
countedIReadOnlyList<OutboxStageCount>The counts the store read, at most one per stage.
Returns
- OutboxSummary
The summary, with one entry per declared stage.
Exceptions
- ArgumentNullException
Thrown when
countedis null.- ArgumentException
Thrown when two entries name the same stage.