Exemple #1
0
        private bool LogFlowError(FlowContext flowContext, IFlowStepRequest flowRequest, Exception ex)
        {
            if (!flowContext.IsRootFlow)
            {
                return(true);
            }

            _logger?.LogFlowException(flowContext, flowRequest, ex);

            var innerEx = ex.InnerException;

            while (innerEx != null)
            {
                _logger?.LogFlowInnerException(flowContext, innerEx);
                innerEx = innerEx.InnerException;
            }

            return(true);
        }