Example #1
0
        private void UpdateServices(IDataMapper mapper, List <int> serviceList)
        {
            serviceCount += serviceList.Count();
            foreach (var serviceId in serviceList)
            {
                var result = GetAndUpdateService(mapper, serviceId);
                if (result != null && result.Id.HasValue)
                {
                    var guidList = new List <Guid>();
                    guidList.AddRange(GetAndUpdateServiceChannels(mapper, mapper.GetSourceServiceChannels(serviceId)));

                    // Add the service channels for a service
                    if (!Settings.DebugData && guidList.Count > 0)
                    {
                        UpdateChannelsForService(result.Id.Value, guidList);
                    }
                }
            }
        }