Exemplo n.º 1
0
        // copy constructor with individual ProcData
        public EventEntry(EventEntry evt)
        {
            Id = evt.Id;

            Created = evt.Created;
            Machine = evt.Machine;
            Input   = evt.Input;
            LogData = evt.LogData;

            _procData = new Dictionary <string, object>(evt.ProcData.Count);
            foreach (var kv in evt.ProcData)
            {
                _procData[kv.Key] = kv.Value;
            }

            _procNames = new List <string>(evt.ProcNames);
        }
Exemplo n.º 2
0
        public void Produce(EventEntry item, string processor, EventQueue.Priority priority = EventQueue.Priority.Low)
        {
            if (equeue == null)
            {
                Log.Error("Unable to produce events before queue initialization!?!?");
                return;
            }

            if (string.IsNullOrEmpty(processor))
            {
                Log.Error("Unable to queue events with empty processor name");
                return;
            }

            Log.Info("Service[" + item.Id + "@" + item.Input.Name + "] (re)queued message"
                     + " with first processor name " + processor);
            equeue.Produce(item, processor, priority);
        }
Exemplo n.º 3
0
 public ProcessorEventStringTemplate(EventEntry evtent)
 {
     repl = evtent.ProcData;
 }