public async Task Heartbeat(string machineName, string agentName, SnHealthRecord healthRecord) { SnTrace.TaskManagement.Write($"AgentHub Heartbeat. Machine: {machineName}, Agent: " + $"{agentName}, Process id: {healthRecord.ProcessId}, " + $"RAM: {healthRecord.RAM}, CPU: {healthRecord.CPU}."); try { await _monitorHub.Heartbeat(machineName, agentName, healthRecord).ConfigureAwait(false); } catch (Exception ex) { SnLog.WriteException(ex, "AgentHub Heartbeat failed.", EventId.TaskManagement.General); } }