public void CallUpdateFulfillmentData(IMarketOrderUpdaterApi api, IList <string> orderNumbers) { using (var db = _dbFactory.GetRWDb()) { var service = new BaseOrderUpdater(api, _log, _time); service.UpdateOrders(db, orderNumbers); } }
public void CallUpdateFulfillmentData(IMarketOrderUpdaterApi api, string orderString) { using (var db = _dbFactory.GetRWDb()) { var service = new BaseOrderUpdater(api, _log, _time); service.UpdateOrders(db, !String.IsNullOrEmpty(orderString) ? new List <string>() { orderString } : null); } }
public BaseOrderUpdater(IMarketOrderUpdaterApi api, ILogService log, ITime time) { _api = api; _log = log; _time = time; }