Inheritance: TaskQueue.Providers.TaskMessage
Beispiel #1
0
        public bool Push(Dictionary <string, object> parameters, ref TaskMessage q_parameter)
        {
            //Console.WriteLine(q_parameter.AddedTime.ToString());
            return(false);

            BenchModel pocket = new BenchModel(q_parameter);

            pocket.ParameterA = "setA";
            pocket.ParameterB = "setB";
            if (pocket.WaitThreadMS > 0)//100 secmax
            {
                if (pocket.WaitThreadMS < 100000)
                {
                    System.Threading.Thread.Sleep(pocket.WaitThreadMS);
                }
                else
                {
                    logger.Warning("message has try to wait thread for more than 100sec, check arguments");
                }
            }

            //q_parameter = pocket; // for persistant only queues
            //return true;

            return(false);
        }
Beispiel #2
0
        public bool Push(Dictionary <string, object> parameters, ref TaskMessage q_parameter)
        {
            //Console.WriteLine(q_parameter.AddedTime.ToString());
            //return false;
            BenchModel pocket = new BenchModel(q_parameter);

            pocket.ParameterA = "setA";
            pocket.ParameterB = "setB";
            //System.Threading.Thread.Sleep(2000);

            //q_parameter = pocket; // for persistant only queues
            //return true;

            return(false);
        }
Beispiel #3
0
        public bool Push(Dictionary<string, object> parameters, ref TaskMessage q_parameter)
        {
            //Console.WriteLine(q_parameter.AddedTime.ToString());
            //return false;
            BenchModel pocket = new BenchModel(q_parameter);
            pocket.ParameterA = "setA";
            pocket.ParameterB = "setB";
            if (pocket.WaitThreadMS > 0)//100 secmax
            {
                if (pocket.WaitThreadMS < 100000)
                    System.Threading.Thread.Sleep(pocket.WaitThreadMS);
                else
                    logger.Warning("message has try to wait thread for more than 100sec, check arguments");
            }

            //q_parameter = pocket; // for persistant only queues
            //return true;

            return false;
        }
Beispiel #4
0
        public bool Push(Dictionary<string, object> parameters, ref TaskMessage q_parameter)
        {
            //Console.WriteLine(q_parameter.AddedTime.ToString());
            //return false;
            BenchModel pocket = new BenchModel(q_parameter);
            pocket.ParameterA = "setA";
            pocket.ParameterB = "setB";
            //System.Threading.Thread.Sleep(2000);

            //q_parameter = pocket; // for persistant only queues
            //return true;

            return false;
        }