Is there a recommended approach for injecting Http/Request/Controller context in an ASP.NET MVC application?
Previously I've only done this with HttpContext like so (I'm using StructureMap):
For<HttpContextBase>().Use(ctx => new HttpContextWrapper(HttpContext.Current));
However, in some cases I also need to get access to the request context. Rather than building this manually, it would be nice to have it injected. A good example would be injecting a UrlHelper (requires RequestContext and RouteCollection).
Thanks
Ben