Update API x nuovi metodi chaimata generic con environment + dict da dlll nuget dell'EgwMEM
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
using EgwCoreLib.Lux.Core.RestPayload;
|
||||
using EgwCoreLib.Lux.Data.Services;
|
||||
using EgwMultiEngineManager;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using NLog;
|
||||
using System.Diagnostics;
|
||||
@@ -50,21 +49,17 @@ namespace Lux.API.Controllers
|
||||
{
|
||||
Dictionary<string, string> DictExec = currReq.DictExec;
|
||||
// controllo se mancassero parametri...
|
||||
if(!DictExec.ContainsKey("Mode"))
|
||||
if (!DictExec.ContainsKey("Mode"))
|
||||
{
|
||||
DictExec.Add("Mode", "1");
|
||||
DictExec.Add("Mode", "1");
|
||||
}
|
||||
if (!DictExec.ContainsKey("UID"))
|
||||
{
|
||||
DictExec.Add("UID", id);
|
||||
}
|
||||
if (!DictExec.ContainsKey("Jwd"))
|
||||
{
|
||||
DictExec.Add("Jwd", demoJwd);
|
||||
}
|
||||
int nId = 1;
|
||||
// da modificare con tipo richiesta...
|
||||
ProcessArgs currArgs = new ProcessArgs(nId, DictExec);
|
||||
EgwMultiEngineManager.Data.Question currArgs = new EgwMultiEngineManager.Data.Question(nId, currReq.EnvType, DictExec);
|
||||
|
||||
await _redisService.PublishAsync(pubChannel, currArgs.sProcessArgs);
|
||||
svgContent = "DONE";
|
||||
|
||||
Reference in New Issue
Block a user