コード例 #1
0
        // Travis.Frisinger - 28.01.2013 : Amended for Debug
        List <DebugItem> GetDebugOutputs(string theResult)
        {
            var       result       = new List <DebugItem>();
            string    resultString = theResult;
            DebugItem itemToAdd    = new DebugItem();
            var       dds          = Conditions;

            try
            {
                if (theResult == "True")
                {
                    resultString = dds.TrueArmText;
                }
                else if (theResult == "False")
                {
                    resultString = dds.FalseArmText;
                }

                itemToAdd.AddRange(new DebugItemStaticDataParams(resultString, "").GetDebugItemResult());
                result.Add(itemToAdd);
            }
            // ReSharper disable EmptyGeneralCatchClause
            catch (Exception)
            // ReSharper restore EmptyGeneralCatchClause
            {
                itemToAdd.AddRange(new DebugItemStaticDataParams(resultString, "").GetDebugItemResult());
                result.Add(itemToAdd);
            }

            _inner.SetDebugOutputs(result);
            return(result);
        }
コード例 #2
0
        // Travis.Frisinger - 28.01.2013 : Amended for Debug
        public List <DebugItem> GetDebugOutputs(IExecutionEnvironment dataList, string _theResult)
        {
            var               result       = new List <DebugItem>();
            string            resultString = _theResult;
            DebugItem         itemToAdd    = new DebugItem();
            IDataListCompiler c            = DataListFactory.CreateDataListCompiler();
            var               dds          = Conditions;

            try
            {
                if (_theResult == "True")
                {
                    resultString = dds.TrueArmText;
                }
                else if (_theResult == "False")
                {
                    resultString = dds.FalseArmText;
                }

                itemToAdd.AddRange(new DebugItemStaticDataParams(resultString, "").GetDebugItemResult());
                result.Add(itemToAdd);
            }
            // ReSharper disable EmptyGeneralCatchClause
            catch (Exception)
            // ReSharper restore EmptyGeneralCatchClause
            {
                itemToAdd.AddRange(new DebugItemStaticDataParams(resultString, "").GetDebugItemResult());
                result.Add(itemToAdd);
            }

            _inner.SetDebugOutputs(result);
            return(result);
        }
コード例 #3
0
        List <DebugItem> GetDebugOutputs(string theResult)
        {
            var       result       = new List <DebugItem>();
            string    resultString = theResult;
            DebugItem itemToAdd    = new DebugItem();
            var       dds          = Conditions;

            try
            {
                resultString = GetResultString(theResult, dds);

                itemToAdd.AddRange(new DebugItemStaticDataParams(resultString, "").GetDebugItemResult());
                result.Add(itemToAdd);
            }
            // ReSharper disable EmptyGeneralCatchClause
            catch (Exception)
            // ReSharper restore EmptyGeneralCatchClause
            {
                itemToAdd.AddRange(new DebugItemStaticDataParams(resultString, "").GetDebugItemResult());
                result.Add(itemToAdd);
            }

            _inner?.SetDebugOutputs(result);
            return(result);
        }
コード例 #4
0
ファイル: DsfDecision.cs プロジェクト: Year-2019-20/Warewolf
        List <DebugItem> GetDebugOutputs(string theResult)
        {
            var result       = new List <DebugItem>();
            var resultString = theResult;
            var itemToAdd    = new DebugItem();
            var dds          = Conditions;

            try
            {
                resultString = GetResultString(theResult, dds);

                itemToAdd.AddRange(new DebugItemStaticDataParams(resultString, "").GetDebugItemResult());
                result.Add(itemToAdd);
            }
            catch (Exception)
            {
                itemToAdd.AddRange(new DebugItemStaticDataParams(resultString, "").GetDebugItemResult());
                result.Add(itemToAdd);
            }

            _inner?.SetDebugOutputs(result);
            return(result);
        }