//@Brief Obtiene la información de la comprobación periódica //@Return dc_InfoCheckPeriodicTime Información de la comprobación periódica public dc_InfoCheckPeriodicTime GetCheckPeriodicTime() { dc_InfoCheckPeriodicTime infoCheckPeriodicTime = new dc_InfoCheckPeriodicTime(); infoCheckPeriodicTime.available = false; try { m_mutexHostControllerEndpoints.WaitOne(); foreach (EndpointAddress ep in m_hostControllerEndpoints) { BasicHttpBinding binding = new BasicHttpBinding(BasicHttpSecurityMode.None); JBCHostControllerServiceClient serviceClient = new JBCHostControllerServiceClient(binding, ep); serviceClient.Open(); infoCheckPeriodicTime = serviceClient.GetCheckPeriodicTime(); serviceClient.Close(); } } catch (Exception ex) { LoggerModule.logger.Error(System.Reflection.MethodInfo.GetCurrentMethod().Name + ". Error: " + ex.Message); } finally { m_mutexHostControllerEndpoints.ReleaseMutex(); } return(infoCheckPeriodicTime); }