public void Save(CommandJob job) { _data.Save(job, true); if (job.IsComplete) { OnJobComplete(job.Id, job); } }
public void SaveNodeStatus(NodeStatus status) { if (status == null) { return; } // TODO: Make sure the values are filled in. bool ok = _data.Save(status, true); if (!ok) { _log.LogError("Could not save NodeStatus from NodeId={0}", status.Id); } else { _log.LogDebug("Received NodeStatus from NodeId={0} and saved it", status.Id); } }