Constructor PresentationPlan
- Namespace
- MailFathom.Application.Discovery.Presentation
- Assembly
- MailFathom.Application.dll
PresentationPlan(int, IReadOnlyList<PresentationBlock>, IReadOnlyList<PresentationCitation>, IReadOnlyList<AccountCoverage>, IReadOnlyList<PresentationLimitation>)
Initializes what one run produced.
public PresentationPlan(int schemaVersion, IReadOnlyList<PresentationBlock> blocks, IReadOnlyList<PresentationCitation> citations, IReadOnlyList<AccountCoverage> coverage, IReadOnlyList<PresentationLimitation> limitations)
Parameters
schemaVersionintThe revision of this contract the plan was written against.
blocksIReadOnlyList<PresentationBlock>The blocks, in the order they are read.
citationsIReadOnlyList<PresentationCitation>The sources the blocks rest on, declared once each.
coverageIReadOnlyList<AccountCoverage>What the run read, one entry per account it drew on.
limitationsIReadOnlyList<PresentationLimitation>What the run knows about its own reach.
Exceptions
- ArgumentNullException
Thrown when
blocks,citations,coverage, orlimitationsis null.- ArgumentOutOfRangeException
Thrown when
schemaVersionis below1.- ArgumentException
Thrown when a list is empty where it may not be or is oversized, a citation is declared twice, an account is reported twice, a limitation is named twice, a block names a citation the plan does not declare, or a backed block rests on a source the plan says nobody could read.