ServiceStack.ServiceStackHost.ApplyRequestFilters C# (CSharp) Метод

ApplyRequestFilters() публичный Метод

Applies the request filters. Returns whether or not the request has been handled and no more processing should be done.
public ApplyRequestFilters ( IRequest req, IResponse res, object requestDto ) : bool
req IRequest
res IResponse
requestDto object
Результат bool
        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;
            }
        }