public virtual bool ApplyRequestFilters(IRequest req, IResponse res, object requestDto)
{
req.ThrowIfNull("req");
res.ThrowIfNull("res");
if (res.IsClosed)
return true;
using (Profiler.Current.Step("Executing Request Filters"))
{
if (!req.IsMultiRequest())
return ApplyRequestFiltersSingle(req, res, requestDto);
var dtos = (IEnumerable)requestDto;
foreach (var dto in dtos)
{
if (ApplyRequestFiltersSingle(req, res, dto))
return true;
}
return false;
}
}