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