private static TaskManager CreateTaskManager(ApplicationSection configuration) { const int sleeptimeLoopTime = 100; ISleep sleep = new Sleeper(); IStop stop = new Stop(); Service service = new Service(configuration.Port); return new TaskManager(log, sleeptimeLoopTime, sleep, stop, service); }
public TaskManager(ILog log, int sleepTime,ISleep sleep ,IStop stop, Service service) { TaskManager.log = log; this.stop = stop; this.service = service; this.sleepTime = sleepTime; this.sleep = sleep; }