Description
Currently to provide factory for the type you have to create InjectionFactory and pass it to the RegisterType method.
Problem
This method has inherent inefficiencies built into it. It requires allocating instance of InjectionFactory , during registration. It also allocates resolution policy to wrap it and provide 'glue' to be called by the Container.
Another issue it does not participate in sharing Per-Resolve dependencies during resolution process.
Solution
Create new method called RegisterFactory to allow registration of the factory delegate.
Description
Currently to provide factory for the type you have to create
InjectionFactoryand pass it to theRegisterTypemethod.Problem
This method has inherent inefficiencies built into it. It requires allocating instance of
InjectionFactory, during registration. It also allocates resolution policy to wrap it and provide 'glue' to be called by the Container.Another issue it does not participate in sharing Per-Resolve dependencies during resolution process.
Solution
Create new method called
RegisterFactoryto allow registration of the factory delegate.