New processor.
This commit is contained in:
@@ -194,7 +194,8 @@ namespace WebAPI.Controllers
|
||||
.Include(x => x.Records)
|
||||
.Where(x =>
|
||||
x.Records!.Any(x => x.Code == "Type" && x.Desc1 == "ProcessWorker") &&
|
||||
x.Records!.Any(x => x.Code == "IsEnabled" && x.Desc1 == "True"))
|
||||
x.Records!.Any(x => x.Code == "IsEnabled" && x.Desc1 == "True")
|
||||
)
|
||||
.ToList();
|
||||
|
||||
layersToProcess = new List<Layer>();
|
||||
@@ -253,12 +254,16 @@ namespace WebAPI.Controllers
|
||||
switch (processType)
|
||||
{
|
||||
case "Copy":
|
||||
//CopyProcessor cp = new CopyProcessor(db, googleSheetValues, this);
|
||||
//cp.process(sourceLayer, processWorker?.Id);
|
||||
CopyProcessor cp = new CopyProcessor(db, googleSheetValues, this);
|
||||
cp.process(sourceLayer, processWorker?.Id);
|
||||
break;
|
||||
case "Deaggregation":
|
||||
//DeaggregationProcessor dp = new DeaggregationProcessor(db, googleSheetValues, this);
|
||||
//dp.process(sourceLayer, processWorker?.Id);
|
||||
DeaggregationProcessor dp = new DeaggregationProcessor(db, googleSheetValues, this);
|
||||
dp.process(sourceLayer, processWorker?.Id);
|
||||
break;
|
||||
case "T3-SingleSource":
|
||||
T3SingleSourceProcessor processor = new T3SingleSourceProcessor(db, googleSheetValues, this);
|
||||
processor.process(sourceLayer, processWorker?.Id);
|
||||
break;
|
||||
}
|
||||
logsController.AddEntry(new LogEntry
|
||||
|
||||
Reference in New Issue
Block a user