Compono.Composer.CreateMany T (int)
Compono¶
Compono.Composer¶
Composer.CreateMany\<T>(int) Method¶
Composes count independent instances of T - each its own root composition operation (its own scope, path, and active-construction-frame stack), per the Execution Flow section of docs/plans/0002-milestone-2-core-composition-engine.md. Item i's root seed forks from this composer's batch seed (this composer's configured WithSeed value, or a freshly generated one if none was configured) via "CreateMany" then i (docs/adr/0012-composition-path-identity-and-deterministic-random-forking.md) - no value is shared across items.
Type parameters¶
T
The type to compose.
Parameters¶
count System.Int32
How many instances to compose.
Returns¶
System.Collections.Generic.IReadOnlyList<T>
A fully, eagerly materialized list of exactly count instances - empty but never null when count is 0.
Exceptions¶
System.ArgumentOutOfRangeException
count is negative.
CompositionException
No explicit value, shared value, registration, provider, or generated plan could satisfy T for one of the requested instances.