/// <summary> /// Received a result for one of the jobs from a client /// </summary> public void ReceiveResult(JobResult result) { var success = _handlerManager.ProcessResult(result); // Update statistics _knownClients[result.ClientId].JobsInProgress--; if (success) { _knownClients[result.ClientId].TotalJobsProcessed++; } else { _knownClients[result.ClientId].TotalJobsFailed++; } }
/// <summary> /// Received a result for one of the jobs from a client /// </summary> public void ReceiveResult(JobResult result) { var success = _handlerManager.ProcessResult(result); // Update statistics var clientInfo = _clientManager.GetOrCreate(result.ClientId); clientInfo.JobsInProgress--; if (success) { clientInfo.TotalJobsProcessed++; } else { clientInfo.TotalJobsFailed++; } }