In unity, when configuring a type, you can specify more than one typeConfig if uniquely named like so:
<type type="IFoo" mapTo="ConcreteFoo">
<typeConfig name="rainbows">
<constructor>
<param name="magic" parameterType="string">
<value value="rainbows"/>
</param>
</constructor>
</typeConfig>
<typeConfig name="unicorns>
<constructor>
<param name="magic" parameterType="string">
<value value="unicorns"/>
</param>
</constructor>
</typeConfig>
</type>
When resolving, how do you specify which typeConfig, and consequently what gets injected to the constructor?
Supply the name in a DependencyAttribute, like this: