Method Compose
- Namespace
- MailFathom.Application.Discovery.Presentation
- Assembly
- MailFathom.Application.dll
Compose(IReadOnlyList<PresentationBlock>, IReadOnlyList<PresentationCitation>, IReadOnlyList<AccountCoverage>, IReadOnlyList<PresentationLimitation>)
Composes a plan against the revision of the contract this build writes.
public static PresentationPlan Compose(IReadOnlyList<PresentationBlock> blocks, IReadOnlyList<PresentationCitation> citations, IReadOnlyList<AccountCoverage> coverage, IReadOnlyList<PresentationLimitation> limitations)
Parameters
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.
Returns
- PresentationPlan
The plan, stamped with CurrentSchemaVersion.
Remarks
How a producer in this deployment writes a plan: the version is the build's rather than something a caller supplies, so nothing here can stamp a revision it did not write. The constructor stays reachable because a plan is also read — deserialization takes the version off the wire, which is the whole point of it being there.
Exceptions
- ArgumentNullException
Thrown when any argument is null.
- ArgumentException
Thrown for the reasons the constructor documents.