Asp.net MVC RouteBase and IoC
I am creating a custom route by subclassing RouteBase. I have a dependency in there that I'd like to wire up with IoC. The method GetRouteData just takes HttpContext, but I want to add in my unit of work as well....somehow. I am using StructureMap, but info on how you would do this with any IoC framework would be helpful. Well, here is our solution. Many little details may be omitted but overall idea is here. This answer may be a kind of offtop to original question but it describes the general solution to the problem. I'll try to explain the part that is responsible for plain custom HTML-pages