protected void Init(MessageQueue.MessageDelegate processor, DictParams paramlist, int priority, bool parallel) { vProcessor = processor; Parameters = paramlist; IsParallel = parallel; Priorty = priority; }
public void Process(MessageQueue msgQueue) { if (IsValid) { vStatus = MessageStatus.Processing; vProcessor(msgQueue, this); } }
public virtual void Process(MessageQueue msgQueue) { if (IsValid) { if (IsParallel) { vStatus = MessageStatus.ParallelProcessing; } else { vStatus = MessageStatus.Processing; } vProcessor(msgQueue, this); } }
public Message(MessageQueue.MessageDelegate processor, DictParams paramlist, int priority, bool parallel) { Init(processor, paramlist, priority, parallel); }
public override void Process(MessageQueue msgQueue) { if (IsValid) { if (IsParallel) { vStatus = MessageStatus.ParallelProcessing; } else { vStatus = MessageStatus.Processing; } if (elapsedProcessor != null) { msgTimer.Elapsed += new ElapsedEventHandler(elapsedProcessor); msgTimer.Enabled = true; msgTimer.Param = this; msgTimer.DictParams = Parameters; msgTimer.Start(); } } }
public Message(MessageQueue.MessageDelegate processor, Dictionary<string, object> paramlist) { vProcessor = processor; Parameters = paramlist; }
protected void ProceedLookRight(MessageQueue queue, Message msg) { Console.WriteLine("Look right"); }