Exemplo n.º 1
0
        public virtual bool ShouldSkip(IRequest req, object requestDto)
        {
            var dto         = requestDto ?? req.Dto;
            var requestType = dto?.GetType();

            return(ExcludeRequestType(requestType) || SkipLogging?.Invoke(req) == true);
        }
Exemplo n.º 2
0
        public virtual bool ShouldSkip(IRequest req, object requestDto)
        {
            var dto = requestDto ?? req.Dto;

            if (LimitToServiceRequests && dto == null)
            {
                return(true);
            }

            var requestType = dto?.GetType();

            return(ExcludeRequestType(requestType) || SkipLogging?.Invoke(req) == true);
        }