Why not a void BuidUp method?

Jun 11, 2008 at 9:49 AM
I know the BuildUp method will return a configured object with the same type of the input parameter, and I know if it does not return a new one, the constructor injection will fail, but I also think it is important to have a void BuildUp method which just build dependency around the existing object so that I can inject dependency in a "this" scope like such:
The loss of a void BuildUp method really cause me a nice bit of trouble since I want to dependency inject a webform page on its PreInit stage...

So, is there any way to extend the unity container to enable such functionality?
Jun 11, 2008 at 10:11 AM
Sorry, I dont see the BuildUp method actually build arround the existing object, now the problem solves, thanks to everyone.