public void RunImportJob(PostRunImportRequest request) { var process = new CNImporterProcess { ConnectionString = _repository.ConnectionString, Repository = _repository }; var args = new CNImportArguments() { CustomerID = request.CustomerID, AdmUserID = request.AdmUserID, AvailableCnVersion = request.AvailableCN, ZipPath = request.ZipPath, TempPath = request.TempPath }; //this part will get refactored after new Processes engine Task.Run(() => { process.Run(args); }); }
public ActionResult PostRunImport(PostRunImportRequest request) { _logger.LogInformation($"{nameof(CNImportController)}.{nameof(PostRunImport)} params: ({JsonConvert.SerializeObject(request, Formatting.Indented)})"); _importLogic.RunImportJob(request); return(new EmptyResult()); }