Esempio n. 1
0
        //@Brief Establece la comprobación periódica
        //@Param[in] infoCheckPeriodicTime Información de la comprobación periódica
        public void SetCheckPeriodicTime(dc_InfoCheckPeriodicTime infoCheckPeriodicTime)
        {
            try
            {
                m_mutexHostControllerEndpoints.WaitOne();
                foreach (EndpointAddress ep in m_hostControllerEndpoints)
                {
                    BasicHttpBinding binding = new BasicHttpBinding(BasicHttpSecurityMode.None);
                    JBCHostControllerServiceClient serviceclient = new JBCHostControllerServiceClient(binding, ep);

                    serviceclient.Open();
                    bool bok = serviceclient.SetCheckPeriodicTime(infoCheckPeriodicTime);
                    serviceclient.Close();
                }
            }
            catch (Exception ex)
            {
                LoggerModule.logger.Error(System.Reflection.MethodInfo.GetCurrentMethod().Name + ". Error: " + ex.Message);
            }
            finally
            {
                m_mutexHostControllerEndpoints.ReleaseMutex();
            }
        }