Ejemplo n.º 1
0
 public override bool FormatOutput(IProcessorContext outgoing)
 {
     ProcessorCommand formatter = new FormatOutput();
     IList source = outgoing.Source as IList;
     foreach (IKeyValue row in source)
     {
         string key = Key;
         IRequestContext context = new RequestContext();
         context[key] = row.Value;
         context.FieldTable = outgoing.FieldTable;
         IProcessorContext _context = new ProcessorContext(key, context);
         formatter.ExecuteProcess(_context);
         row.Value = _context.Target;
     }
     outgoing.Target = outgoing.Source;
     return true;
 }
        public override bool FormatOutput(IProcessorContext outgoing)
        {
            ProcessorCommand formatter = new FormatOutput();
            IList source = outgoing.Source as IList;

            IEntryList target = NewEntryList();

            foreach (IDictionary row in source)
            {
                IRequestContext context = new RequestContext(row);
                context.FieldTable = outgoing.FieldTable;
                ICollection keys = row.Keys;
                foreach (string key in keys)
                {
                    IProcessorContext _context = new ProcessorContext(key, context);
                    formatter.ExecuteProcess(_context);
                }
                target.AddEntry(context.Criteria);
            }
            outgoing.Target = target;
            return true;
        }
Ejemplo n.º 3
0
        private void ProcessRelated(IRequestContext context)
        {
            AssertProcessRelated(context);

            ICollection related = CombinedIDs(context);
            foreach (string key in related)
            {
                IProcessorContext _context = new ProcessorContext(key, context);
                ExecuteProcess(_context);
            }
        }