public MaintenanceProcessor(long businessUnitEntityKey)
     : base(MethodBase.GetCurrentMethod().DeclaringType, businessUnitEntityKey.ToString())
 {
     _BusinessUnitEntityKey = businessUnitEntityKey;
     _ApexConsumer          = new ApexConsumer(businessUnitEntityKey, Logger);
     _IntegrationDBAccessor = new IntegrationDBAccessor(Logger);
 }
Exemple #2
0
 public DictCache(string filePath, log4net.ILog logger, Region region, ApexConsumer apexConsumer)
 {
     dicFilePath              = filePath;
     _Logger                  = logger;
     regionEntityKeyDict      = new Dictionary <string, long>();
     serviceLocationDict      = new Dictionary <string, ServiceLocation>();
     timeWindowEntityKeyDict  = new Dictionary <string, long>();
     serviceTimeEntityKeyDict = new Dictionary <string, long>();
     depotsForRegionDict      = new Dictionary <string, Depot>();
     orderClassesDict         = new Dictionary <string, long>();
     _ApexConsumer            = apexConsumer;
     _Region                  = region;
 }
        private void RetrieveUrls(QueryServiceClient queryServiceClient, Region region)
        {
            WSU.MainServiceLogger.Info("Retrieve Urls for Region: " + ApexConsumer.ToString(region));
            UrlSet urlSet = queryServiceClient.RetrieveUrlsForContext(
                SessionHeader,
                new SingleRegionContext
            {
                BusinessUnitEntityKey = region.BusinessUnitEntityKey,
                RegionEntityKey       = region.EntityKey
            });

            if (urlSet == null)
            {
                throw new Exception("Retrieve Urls failed with a null result for Region: " + ApexConsumer.ToString(region));
            }
            else
            {
                WSU.MainServiceLogger.Debug("Retrieve Urls completed successfully for Region: " + ApexConsumer.ToString(region));
                RegionUrlSets.Add(region.EntityKey, urlSet);
            }
        }
 public NotificationsProcessor(long businessUnitEntityKey)
     : base(MethodBase.GetCurrentMethod().DeclaringType, businessUnitEntityKey.ToString())
 {
     _BusinessUnitEntityKey = businessUnitEntityKey;
     _ApexConsumer          = new ApexConsumer(businessUnitEntityKey, Logger);
 }