views:

78

answers:

2

Is it possible for me to get Castle Windsor to inject an object that has been created with URL parameters? Either as query string parameters or parameters defined in a routing configuration?

Currently this object is being passed in to the Controller's Index action method, but I need to have it available in the constructor.

If so, what do I need to do?

+2  A: 

I would start by looking at the documentation.

Krzysztof Koźmic
A: 

The scenario sounds really hacky, but if you really wanted to do this I would recommend implementing a custom controller factory.

There, you can control the instantiation of your controllers.

Martin Aatmaa