I am using Castle Windsor in my application and I would like to use inject some services example ILog in my ExceptionFilterAttribute :
public class GenericExceptionFilterAttribute : ExceptionFilterAttribute
{
private readonly ILog _logger;
public GenericExceptionFilterAttribute()
{
}
public GenericExceptionFilterAttribute(ILogManager logManager)
{
_logger = logManager.GetLogger(typeof(GenericExceptionFilterAttribute));
}
}
How can I inject services in this class ?
Regards
Carlos