public WorkerThreadResults() { _result = new WorkerThreadResult(); var socketWorker = new SocketWorkerJob(new Uri("http://localhost:5000")); _worker = socketWorker.Init(0, _result).Result; }
public IWorkerApplication Build() { var jobs = new IWorkerJob[_jobs.Count]; for (int i = 0; i < _jobs.Count; i++) { jobs[i] = buildJob(_jobs[i]); } return(new WorkerApplication(jobs)); }
public Worker(IWorkerJob workerJob) { _workerJob = workerJob; }