I need such behaviour quite often. What about its worth, problem is if I need create an object with additional runtime parameters I can't do that via Unity, and I have the strange situation - my objects instantiated in two different ways.
Now I use my own dependency injection container based on ObjectBuilder1 and I've implemented such feature for it.
At the moment I'm going to start use Unity as a DI container, and found out following problems.
In order to implement this feature I have to have a method like Resolve<T>(params object arguments). The only one way is make a class inherits UnityContainer, am I right?
As far as I understand, extensions must not contains methods with Resolve semantic in your idea
I can inherit UnityContainer class, but I can't extend IUnityContainer interface with the new method.
So, it seems that I have to make my own DI container based on ObjectBuilder2 :), because Unity doesn't allow me to do what I need.
Thanks in advance for any other ideas.