Пример #1
0
        public IntegrationsService(IOrderExportService  orderExportService)
        {
            _timer = new Timer(120000) { AutoReset = true };
            _orderExportService=orderExportService;
            TestJob();
           _timer.Elapsed += (sender, eventArgs) =>
                                  {
                                     if (!isOnMission)
                                      {
                                          GetNextOrders();
                                          
                                          isOnMission = false;

                                      }
                                      
                                  };
        }
Пример #2
0
        public PzIntegrationService(IOrderExportService orderExportService)
        {
            Errors=new List<ImportValidationResultInfo>();
           
            _orderExportService = orderExportService;
           // TestJob();
            _timer = new Timer(120000) { AutoReset = true };
            _timer.Elapsed += (sender, eventArgs) =>
            {
                if (!isOnMission)
                {
                    GetNextOrders();

                    isOnMission = false;

                }
                IsStarted = true;

            };
        }
 public OrderExportController(IOrderExportService orderExportService)
 {
     _orderExportService = orderExportService;
 }