Channels:
- renaming in conf json - fix gestione classi post rename
This commit is contained in:
@@ -21,7 +21,7 @@ namespace Lux.API.Controllers
|
||||
_redisService = redisService;
|
||||
_imgService = imgServ;
|
||||
_confService = confServ;
|
||||
pubChannel = _config.GetValue<string>("ServerConf:PubChannel") ?? "";
|
||||
chPub = _config.GetValue<string>("ServerConf:ChannelPub") ?? "";
|
||||
}
|
||||
|
||||
#endregion Public Constructors
|
||||
@@ -69,7 +69,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);
|
||||
svgContent = "DONE";
|
||||
}
|
||||
sw.Stop();
|
||||
@@ -111,7 +111,7 @@ namespace Lux.API.Controllers
|
||||
int nId = 1;
|
||||
// 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);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -247,7 +247,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);
|
||||
svgContent = "DONE";
|
||||
}
|
||||
sw.Stop();
|
||||
@@ -261,7 +261,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;
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user