Channels:
- renaming in conf json - fix gestione classi post rename
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user