multiple
decorates factories to allow multiple instantiation.
Import
Declaration (3 overloadings)
Arguments (1st overloading)
factory:
IFactory<IContainer, Name>
- factory to be decorated to generate multiple instances.
Arguments (2nd overloading)
factoryTuple:
IFactoryTuple<IContainer, Name>
- factory tuple to be decorated to generate multiple instances.
Returns
IFactoryTuple<IContainer, Name>
- factory tuple (factory and initializer) that allows to create multiple instances
Arguments (3rd overloading)
factories:
IFactories<IContainer>
- factories object to decorate all factories inside of it.
Returns
IFactories<IContainer>
- factories object with decorated factories (or factory tuples)
Example
The same effect could be reached by decorating whole factories object
Last updated