Beispiel #1
0
        public RunnerThread(IComponentsConfig cfg, string service, RunnerContext context, int iterations, int iterationDelay)
        {
            Cfg             = cfg;
            ServiceName     = service;
            Context         = context;
            IterationsCount = iterations;
            IterationDelay  = iterationDelay;
            ServicePrv      = new NReco.Winter.ServiceProvider(Cfg);
            Thrd            = new Thread(new ThreadStart(Execute));

            RunnerThreadsMap.Add(Thrd, this);
        }
Beispiel #2
0
        public RunnerThread(IComponentsConfig cfg, string service, RunnerContext context, int iterations, int iterationDelay)
        {
            Cfg = cfg;
            ServiceName = service;
            Context = context;
            IterationsCount = iterations;
            IterationDelay = iterationDelay;
            ServicePrv = new NReco.Winter.ServiceProvider(Cfg);
            Thrd = new Thread(new ThreadStart(Execute));

            RunnerThreadsMap.Add(Thrd, this);
        }