Skip to content

Compono.CompositionBuilder.For T ()

Compono

Compono.CompositionBuilder

CompositionBuilder.For\<T>() Method

Starts a type or member configuration rule for T - calling .Use(...) directly registers a type rule (matches any stage-4 request for exactly T, regardless of which member/position requested it); calling .Member(x => x.Y) first registers a member rule instead (matches only requests for that exact declaring type/member pair). See docs/adr/0020-composition-configuration-rules.md.

public Compono.CompositionTypeRuleBuilder<T> For<T>();

Type parameters

T

The type to configure a rule for.

Returns

Compono.CompositionTypeRuleBuilder<T>