So, I am doing .NET MVC 3 based application and using Castle Windsor as an IOC container.
I am using it without any problems and working perfectly fine. Now I encountered this situation where I created an HTML helper which is exposing a method
public static string GetContentByKey(string key)
{
//I need to use a service that is resolved by Windsor here
}
The problem is that in this Helper class I need to use a service that initialized through windsor, but since this helper is a static method there you have no option of constructor injection.