protected void Init(MessageQueue.MessageDelegate processor, DictParams paramlist, int priority, bool parallel) { vProcessor = processor; Parameters = paramlist; IsParallel = parallel; Priorty = priority; }
public FrequentMessage(ElapsedEventHandler processor, DictParams paramlist, int priority, bool parallel) : base(null, paramlist, priority, parallel) { elapsedProcessor = processor; msgTimer = new ParamTimer(vInterval); msgTimer.Param = this; msgTimer.DictParams = paramlist; msgTimer.Enabled = false; }
protected virtual FrequentMessage Add(ElapsedEventHandler processor, DictParams parameters, int priority, bool isParallel) { FrequentMessage m = new FrequentMessage(processor, parameters, priority, isParallel); int i = GetIndex(priority); if (i < 0) { Messages.Add(m); } else { Messages.Insert(i, m); } return(m); }
protected virtual Message Add(MessageDelegate processor, DictParams parameters, int priority, bool isParallel) { Message m = new Message(processor, parameters, priority, isParallel); int i = GetIndex(priority); if (i < 0) { Messages.Add(m); } else { Messages.Insert(i, m); } return(m); }
public Message(MessageQueue.MessageDelegate processor, DictParams paramlist, int priority, bool parallel) { Init(processor, paramlist, priority, parallel); }
protected virtual FrequentMessage Create(ElapsedEventHandler processor, DictParams parameters, int priority, bool isParallel) { FrequentMessage m = new FrequentMessage(processor, parameters, priority, isParallel); return(m); }
protected virtual Message Add(MessageDelegate processor, DictParams parameters, bool isParallel) { return(Add(processor, parameters, 0, isParallel)); }
protected virtual Message Add(MessageDelegate processor, DictParams parameters) { return(Add(processor, parameters, 0, false)); }