On my base controller I have placed the Logger
attribute.
This LoggerAttribute looks like this:
public class LoggerAttribute: InjectableFilterAttribute
{
public override Type FilterType
{
get { return typeof (LoggerActionFilter); }
}
}
The ctor on this loggerattribute gets hit, but the FilterType getter not.
The relevant part of the filter itself looks like this:
public class LoggerActionFilter: IActionFilter
{
private readonly ILoggerService logger;
public LoggerActionFilter (ILoggerService logger)
{
this.logger = logger;
}
<IActionFilter Implementeation>
}
The filter's ctor never gets hit either.
For the wiring of my services and instantiation of servicelocator check here
The registration of the ILoggerService can be found here
What am I missing?