private bool RunBeforeActionFilters()
{
try
{
// If we are supposed to run the filters...
if (!skipFilters)
{
// ...run them. If they fail...
if (!ProcessFilters(ExecuteEnum.BeforeAction))
{
return false;
}
}
}
catch(ThreadAbortException)
{
if (logger.IsErrorEnabled)
{
logger.Error("ThreadAbortException, process aborted");
}
hasError = true;
}
catch(Exception ex)
{
hasError = true;
if (logger.IsErrorEnabled)
{
logger.Error("Exception during filter process", ex);
}
exceptionToThrow = ex;
}
return ! hasError;
}