Unity new user

Jul 24, 2009 at 8:36 PM


We just started using Unity 1.2 on a new project.

We need to perform certain operations after Unity has injected all of a particular object's dependencies.  Is this something that we can do with the ObjectBuilder2? How do we know when all of the dependencies has been injected?

Thank you,


after it has injected
        //     all of an object's dependencies.





Dec 18, 2009 at 1:23 AM

You'll need to write a small container extension to add the BuilderAware strategy to the end of the strategy chain. Then, if you object implements IBuilderAware it'll get called after it's done being injected by the container.

I'm sure I answered this already one for another poster, but I can't find the post now. I'll keep looking.