public CustomerExportWholeSalePriceSkuService(customerscheduledtask task) { _task = task; _exportedEisSupplierSKUs = new List <string>(); _generatedFile = string.Format("{0}\\{1}\\{2}", _exportedFileFolder, TaskType, Guid.NewGuid() + "_" + _task.ImportFileName); }
private TaskService _createCustomerTaskServiceInstance(customerscheduledtask task) { if (task.TaskType == CustomerScheduledTaskType.CUSTOMER_EXPORT_SKU) { return(new CustomerExportWholeSalePriceSkuService(task as customerscheduledtask)); } else { throw new ArgumentException("Unknown task type: " + task.TaskType); } }