Unity support for design-time factories (XML).

Feb 12, 2015 at 5:48 PM

is there a way to register a factory in Unity's XML configuration?
Unity should inject some constructor parameters and use the factory in order to instantiate the object.

Here is a Spring .NET based example:
<object id="name" type="Namespace.Factory, Assembly" factory-method="Create">
        <constructor-arg name="intParam" value="1" />
        <constructor-arg name="objParam" ref="objectName" />
Many thanks in advance