Example #1
0
        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); });
        }
Example #2
0
 public ActionResult PostRunImport(PostRunImportRequest request)
 {
     _logger.LogInformation($"{nameof(CNImportController)}.{nameof(PostRunImport)} params: ({JsonConvert.SerializeObject(request, Formatting.Indented)})");
     _importLogic.RunImportJob(request);
     return(new EmptyResult());
 }