private void ProsessTaskRequest(TaskRequest taskRequest) { if (taskRequest.Workers.Count > 0) { var worker = taskRequest.Workers[0]; worker.AssigneRequest(taskRequest.Request); taskRequest.Workers.RemoveAt(0); } }
public void MakeRequest(Core.Event.EventRequest request) { log.Info("The MakeRequest called"); TaskRequest taskRequest = new TaskRequest { Request = request, Workers = _workers.ToList(), Responses = new List <Core.Event.EventResponse>() }; _tasks.Add(taskRequest.TaskId, taskRequest); ProsessTaskRequest(taskRequest); }