protected override void Process() { foreach (Connector connector in base.Connectors.Where(c => ((ConnectorType)c.ConnectorType).Has(ConnectorType.ShopAssortment))) { log.DebugFormat("Start Process shop Stock import for {0}", connector.Name); try { DateTime start = DateTime.Now; log.InfoFormat("Start process products:{0}", start); using (Concentrator.Web.ServiceClient.AssortmentService.AssortmentServiceSoapClient soap = new Concentrator.Web.ServiceClient.AssortmentService.AssortmentServiceSoapClient()) { products = new XDocument(soap.GetAssortmentContent(connector.ConnectorID, false, true, null, false)); log.Info("Start import Stock"); ShopUtility util = new ShopUtility(); util.ProcessStock(connector, log, products); log.Info("Finish import Stock"); } } catch (Exception ex) { log.Error("Error import shop ProcessProducts", ex); } log.DebugFormat("Finish Process shop import for {0}", connector.Name); } }