Example #1
0
        public bool DoHeartBeat()
        {
            if (!m_IsHeartBeatActive)
            {
                return(m_IsHeartBeatActive);
            }

            try
            {
                var response = communicationManager.DoHeartbeat(m_Url, m_Session.Id, serverName).Result;
                if (response == null)
                {
                    m_IsHeartBeatActive = false;
                }
                else
                {
                    m_IsHeartBeatActive = response.IsSuccessStatusCode;
                }
            }
            catch (Exception e)
            {
                m_IsHeartBeatActive = false;
            }

            return(m_IsHeartBeatActive);
        }