public static IEnumerable <DynamicService> GetServices()
        {
            var result = new List <DynamicService>();

            var locator = new EsbManagementServiceLocator();

            foreach (var endpoint in locator.FetchManagmentServices())
            {
                var service = endpoint.CreateServiceEntry();
                if (service.Compile())
                {
                    result.Add(service);
                }
                else
                {
                    Dev2Logger.Error("EsbManagementServiceLocator", new Exception(string.Format(ErrorResource.FailedToLoadManagementService, endpoint.HandlesType())), GlobalConstants.WarewolfError);
                }
            }

            return(result);
        }
        public static List <DynamicService> GetServices()
        {
            var result = new List <DynamicService>();

            var locator = new EsbManagementServiceLocator();

            foreach (var endpoint in locator.FetchManagmentServices())
            {
                var service = endpoint.CreateServiceEntry();
                if (service.Compile())
                {
                    result.Add(service);
                }
                else
                {
                    Dev2Logger.Log.Error("EsbManagementServiceLocator", new Exception("Failed to load management service [ " + endpoint.HandlesType() + " ]"));
                }
            }

            return(result);
        }