/// <summary> /// If a connection failure occurs for the provisioning web service or the machine monitoring socket this method /// will be called. It will wait for a number of seconds and then try and re-initialise the connections. /// </summary> private void InitialiseServices(int millisecondsDelay) { if (!m_provisioningInitialisationInProgress) { m_provisioningInitialisationInProgress = true; if (millisecondsDelay > 0) { Thread.Sleep(millisecondsDelay); } try { m_riaContext.IsAlive(IsAliveComplete, null); } catch (Exception provExcp) { m_persistorStatusMessage = provExcp.Message; m_persistorStatus = ServiceConnectionStatesEnum.Error; UpdateAppStatus(); } } }