コード例 #1
0
            protected override IList <OutputTO> TryExecuteConcreteAction(IDSFDataObject context, out ErrorResultTO error, int update)
            {
                error = new ErrorResultTO();
                var output = new OutputTO(GlobalConstants.ErrorPayload)
                {
                };

                output.OutputStrings.Add("someString error");
                return(new List <OutputTO>
                {
                    output
                });
            }
コード例 #2
0
 private static void ParseOutputs(IDSFDataObject dataObject, int update, ErrorResultTO errors, OutputTO output)
 {
     foreach (string value in output.OutputStrings)
     {
         if (output.OutPutDescription == GlobalConstants.ErrorPayload)
         {
             errors.AddError(value);
         }
         else
         {
             foreach (var region in DataListCleaningUtils.SplitIntoRegions(output.OutPutDescription))
             {
                 dataObject.Environment.Assign(region, value, update);
             }
         }
     }
 }