Esempio n. 1
0
 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);
 }
Esempio n. 2
0
        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));
        }