public IntegrationsService(IOrderExportService orderExportService) { _timer = new Timer(120000) { AutoReset = true }; _orderExportService=orderExportService; TestJob(); _timer.Elapsed += (sender, eventArgs) => { if (!isOnMission) { GetNextOrders(); isOnMission = false; } }; }
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; }