How to inject UrlHelper in MVC using Castle Windsor

Posted by zaph0d on Stack Overflow See other posts from Stack Overflow or by zaph0d
Published on 2010-06-02T13:47:43Z Indexed on 2010/06/02 13:53 UTC
Read the original article Hit count: 295

I have a component that has a dependency on UrlHelper that I need to register using Castle Windsor. UrlHelper in turn has depdendencies on RequestContext (and RouteCollection).

Now my controller has a Url property of type UrlHelper but cannot really access this as far as I can tell.

What is the most efficient way to register my UrlHelper dependency (using fluent configuration)?

© Stack Overflow or respective owner

Related posts about asp.net-mvc-2

Related posts about castle-windsor