public virtual bool ShouldSkip(IRequest req, object requestDto) { var dto = requestDto ?? req.Dto; var requestType = dto?.GetType(); return(ExcludeRequestType(requestType) || SkipLogging?.Invoke(req) == true); }
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); }