static void BuildWorkTasks() { //TODO: launch services var settings = new WorkTaskSettings { Interval = 100, WorkerCount = 5 }; var myTest = new MyTestWorker("MyWorkTask", settings); myTest.Start(); var taskManager = DependencyResolver.Resolve <TaskManager>(); taskManager.WorkTasks.Add(myTest); }
public MyTestWorker(string name, WorkTaskSettings settings) : base(name, settings) { _log = DependencyResolver.Resolve <ILogger <MyTestWorker> >(); }