Ejemplo n.º 1
0
        private List <IAutoDeployService> GetAgentServices()
        {
            List <EndpointInfo>       endPoints          = EndpointRepository.GetEndPoints();
            List <IAutoDeployService> AutoDeployServices = new List <IAutoDeployService>();

            foreach (EndpointInfo endPoint in endPoints)
            {
                try
                {
                    AutoDeployServices.Add(WCFUtilities.ServiceFactory <IAutoDeployService> .GetService(endPoint.Address));
                    LogManager.Instance.WriteInfo("EndPoint Added : " + endPoint.Address);
                }
                catch (Exception ex)
                {
                    LogManager.Instance.WriteError("Couldnt add EndPoint : " + endPoint.Address + " Error Message : " + ex.Message + @"** \n You should check Endpoint address at Config\Agents.xml");
                }
            }
            return(AutoDeployServices);
        }