Compono.CompositionRow.ResolveShared TValue (Compono.CompositionRequestDescriptor)
Compono¶
Compono.CompositionRow¶
CompositionRow.ResolveShared\<TValue>(CompositionRequestDescriptor) Method¶
Composes TValue through the same pipeline Resolve<TValue>(CompositionRequestDescriptor) uses, and additionally stores the successful result into this row's shared scope - a later request for the same type in this row, including one made by a nested generated plan, reuses it instead of composing its own independent value.
Type parameters¶
TValue
The requested value's type.
Parameters¶
descriptor CompositionRequestDescriptor
The compact, compile-time-constructed request metadata.
Returns¶
Exceptions¶
CompositionException
No explicit value, shared value, registration, provider, or generated plan could satisfy the request; or the pipeline-produced value is null for a non-nullable request, or its runtime type isn't assignable to TValue; or a shared value for TValue has already been established in this row.