Compono.CompositionTypeRuleBuilder T
Compono¶
Compono¶
CompositionTypeRuleBuilder\<T> Class¶
A thin, type-scoped view over a CompositionBuilder's shared accumulator state - returned by For<T>(). Calling Use(T)/ Use(Func<ICompositionContext,T>) directly registers a type rule; calling Member<TMember>(Expression<Func<T,TMember>>) first returns a further-scoped CompositionMemberRuleBuilder<TParent,TMember> whose own Use/ WithCollectionSize register a member rule instead. See docs/adr/0020-composition-configuration-rules.md.
Type parameters¶
T
The type this rule builder is scoped to.
Inheritance System.Object → CompositionTypeRuleBuilder\<T>
| Methods | |
|---|---|
| Member<TMember>(Expression<Func<T,TMember>>) | Scopes this rule to a single member of T - parsed immediately, at the point this method is called, not deferred to Build(). |
| Use(Func<ICompositionContext,T>) | Registers a type rule whose value is produced by factory - matches any stage-4 request for exactly T, regardless of which member/position requested it. |
| Use(T) | Registers a type rule that always produces value - matches any stage-4 request for exactly T, regardless of which member/position requested it. |