Inject members to existing instance
InjectMembers(instance) - resolve dependencies on an existing instance without registering the type in the container. That would be useful for situations where the instance is created by someone else (like the Page instance in ASP.Net WebForms).
13
votes
3 comments
-
simoncropp
commented
thinking two methods on IWindsorContainer. not sure on the names..
Populate: walks through all the properties and inserts anything that matches registered components
Construct: constructs a type and populates constructor parameters using registered components. -
Cool.
How do you plan to go about implementing this?
-
simoncropp
commented
I will have a go at this on the weekend