Hi
I have a static class which calls a static Logger class,
e.g
static class DoesStuffStatic
{
public static void DoStuff()
{
try
{
//something
}
catch(Exception e)
{
//do stuff;
Logger.Log(e);
}
}
}
static class Logger
{
public static void Log(Exception e)
{
//do stuff here
}
}
How do I inject the Logger into my static class?
Note: I've read http://stackoverflow.com/questions/743951/help-with-dependency-injection-in-net, but this seems to use an instance logger.