Channels:

- renaming in conf json
- fix gestione classi post rename
This commit is contained in:
Samuele Locatelli
2025-11-06 18:10:47 +01:00
parent a70ed095e9
commit 8fa8732cf1
22 changed files with 277 additions and 264 deletions
+4 -4
View File
@@ -19,7 +19,7 @@ namespace Lux.API.Controllers
_config = config;
_redisService = redisService;
_imgService = imgServ;
pubChannel = _config.GetValue<string>("ServerConf:PubChannel") ?? "";
chPub = _config.GetValue<string>("ServerConf:ChannelPub") ?? "";
}
#endregion Public Constructors
@@ -60,7 +60,7 @@ namespace Lux.API.Controllers
// da modificare con tipo richiesta...
QuestionDTO currArgs = new QuestionDTO(nId, currReq.EnvType, DictExec);
await _redisService.PublishAsync(pubChannel, currArgs.sProcessArgs);
await _redisService.PublishAsync(chPub, currArgs.sProcessArgs);
retVal = "DONE";
}
sw.Stop();
@@ -97,7 +97,7 @@ namespace Lux.API.Controllers
// da modificare con tipo richiesta...
QuestionDTO currArgs = new QuestionDTO(nId, EgwMultiEngineManager.Data.Constants.EXECENVIRONMENTS.WINDOW, DictExec);
await _redisService.PublishAsync(pubChannel, currArgs.sProcessArgs);
await _redisService.PublishAsync(chPub, currArgs.sProcessArgs);
retVal = "DONE";
}
sw.Stop();
@@ -111,7 +111,7 @@ namespace Lux.API.Controllers
private static Logger Log = LogManager.GetCurrentClassLogger();
private readonly IRedisService _redisService;
private readonly string pubChannel = "";
private readonly string chPub = "";
private IConfiguration _config;
#endregion Private Fields