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); }