Exemple #1
0
 protected void Init(MessageQueue.MessageDelegate processor, DictParams paramlist, int priority, bool parallel)
 {
     vProcessor = processor;
     Parameters = paramlist;
     IsParallel = parallel;
     Priorty    = priority;
 }
Exemple #2
0
 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;
 }
Exemple #3
0
        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);
        }
Exemple #4
0
        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);
        }
Exemple #5
0
 public Message(MessageQueue.MessageDelegate processor, DictParams paramlist, int priority, bool parallel)
 {
     Init(processor, paramlist, priority, parallel);
 }
Exemple #6
0
        protected virtual FrequentMessage Create(ElapsedEventHandler processor, DictParams parameters, int priority, bool isParallel)
        {
            FrequentMessage m = new FrequentMessage(processor, parameters, priority, isParallel);

            return(m);
        }
Exemple #7
0
 protected virtual Message Add(MessageDelegate processor, DictParams parameters, bool isParallel)
 {
     return(Add(processor, parameters, 0, isParallel));
 }
Exemple #8
0
 protected virtual Message Add(MessageDelegate processor, DictParams parameters)
 {
     return(Add(processor, parameters, 0, false));
 }