Skip to content

Replace InjectionFactory with explicit method on IUnityContainer #89

@ENikS

Description

@ENikS

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions