Fix rename Channel
This commit is contained in:
@@ -9,7 +9,7 @@ namespace Test.UI.Components.Pages
|
||||
public partial class Aedifica : IDisposable
|
||||
{
|
||||
|
||||
private string subChannel = "";
|
||||
private string channelSub = "";
|
||||
private string CalcUid = "TestBeam";
|
||||
private string currSvg = "";
|
||||
private string apiUrl = "";
|
||||
@@ -51,7 +51,7 @@ namespace Test.UI.Components.Pages
|
||||
GenericBasePath = Config.GetValue<string>("ServerConf:GenericBaseUrl") ?? "";
|
||||
//imgTag = Config.GetValue<string>("ServerConf:ImageFileTag") ?? "";
|
||||
calcTag = Config.GetValue<string>("ServerConf:CalcTag") ?? "";
|
||||
subChannel = Config.GetValue<string>("ServerConf:SvgChannel") ?? "";
|
||||
channelSub = Config.GetValue<string>("ServerConf:ChannelSvg") ?? "";
|
||||
}
|
||||
|
||||
private async Task SendBtlRequest(Dictionary<string, string> CurrArgs)
|
||||
@@ -74,7 +74,7 @@ namespace Test.UI.Components.Pages
|
||||
// conversione on-the-fly SVG da mostrare
|
||||
if (!string.IsNullOrEmpty(currArgs.newMessage))
|
||||
{
|
||||
if (currArgs.msgUid.Equals($"{subChannel}:{CalcUid}"))
|
||||
if (currArgs.msgUid.Equals($"{channelSub}:{CalcUid}"))
|
||||
{
|
||||
currSvg = currArgs.newMessage;
|
||||
}
|
||||
|
||||
@@ -179,7 +179,7 @@ namespace Test.UI.Components.Pages
|
||||
|
||||
private Hardware hardwareMassUpdate;
|
||||
|
||||
private string hwOptionChannel = "";
|
||||
private string channelHwOpt = "";
|
||||
private string imgBasePath = "";
|
||||
|
||||
/// <summary>
|
||||
@@ -195,8 +195,8 @@ namespace Test.UI.Components.Pages
|
||||
|
||||
private string profileMassUpdate;
|
||||
|
||||
private string shapeChannel = "";
|
||||
private string svgChannel = "";
|
||||
private string channelShape = "";
|
||||
private string channelSvg = "";
|
||||
private string windowUid = "CurrWindow";
|
||||
|
||||
#endregion Private Fields
|
||||
@@ -219,9 +219,9 @@ namespace Test.UI.Components.Pages
|
||||
imgBasePath = Config.GetValue<string>("ServerConf:ImageBaseUrl") ?? "";
|
||||
GenericBasePath = Config.GetValue<string>("ServerConf:GenericBaseUrl") ?? "";
|
||||
calcTag = Config.GetValue<string>("ServerConf:CalcTag") ?? "";
|
||||
svgChannel = Config.GetValue<string>("ServerConf:SvgChannel") ?? "";
|
||||
shapeChannel = Config.GetValue<string>("ServerConf:ShapeChannel") ?? "";
|
||||
hwOptionChannel = Config.GetValue<string>("ServerConf:HwOptChannel") ?? "";
|
||||
channelSvg = Config.GetValue<string>("ServerConf:ChannelSvg") ?? "";
|
||||
channelShape = Config.GetValue<string>("ServerConf:ChannelShape") ?? "";
|
||||
channelHwOpt = Config.GetValue<string>("ServerConf:ChannelHwOpt") ?? "";
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -283,7 +283,7 @@ namespace Test.UI.Components.Pages
|
||||
// conversione on-the-fly SVG da mostrare
|
||||
if (!string.IsNullOrEmpty(currArgs.newMessage))
|
||||
{
|
||||
if (currArgs.msgUid.StartsWith($"{hwOptionChannel}:{windowUid}") && currArgs.newMessage.Length > 2)
|
||||
if (currArgs.msgUid.StartsWith($"{channelHwOpt}:{windowUid}") && currArgs.newMessage.Length > 2)
|
||||
{
|
||||
// deserializzo il dizionario delle risposte...
|
||||
Dictionary<int, string> rawDict = JsonConvert.DeserializeObject<Dictionary<int, string>>(currArgs.newMessage) ?? new Dictionary<int, string>();
|
||||
@@ -305,7 +305,7 @@ namespace Test.UI.Components.Pages
|
||||
// conversione on-the-fly SVG da mostrare
|
||||
if (!string.IsNullOrEmpty(currArgs.newMessage) && currArgs.newMessage.Length > 2)
|
||||
{
|
||||
if (currArgs.msgUid.StartsWith($"{shapeChannel}:{windowUid}"))
|
||||
if (currArgs.msgUid.StartsWith($"{channelShape}:{windowUid}"))
|
||||
{
|
||||
// deserializzo il dizionario delle risposte...
|
||||
var rawDict = JsonConvert.DeserializeObject<Dictionary<int, string>>(currArgs.newMessage);
|
||||
@@ -324,7 +324,7 @@ namespace Test.UI.Components.Pages
|
||||
// conversione on-the-fly SVG da mostrare
|
||||
if (!string.IsNullOrEmpty(currArgs.newMessage))
|
||||
{
|
||||
if (currArgs.msgUid.Equals($"{svgChannel}:{windowUid}"))
|
||||
if (currArgs.msgUid.Equals($"{channelSvg}:{windowUid}"))
|
||||
{
|
||||
currSvg = currArgs.newMessage;
|
||||
CurrData.SvgPreview = currArgs.newMessage;
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
<TargetFramework>net8.0</TargetFramework>
|
||||
<Nullable>enable</Nullable>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Version>2.7.11.618</Version>
|
||||
<Version>2.7.11.710</Version>
|
||||
<Authors>Annamaria Sassi</Authors>
|
||||
<Company>Egalware</Company>
|
||||
<Description>Componente gestione Configurazioni avanzate Window per LUX</Description>
|
||||
@@ -323,6 +323,9 @@
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
<TargetFramework>net8.0</TargetFramework>
|
||||
<Nullable>enable</Nullable>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Version>2.7.11.618</Version>
|
||||
<Version>2.7.11.710</Version>
|
||||
<Authors>Annamaria Sassi</Authors>
|
||||
<Company>Egalware</Company>
|
||||
<Description>Componente gestione JWD per LUX</Description>
|
||||
@@ -425,6 +425,9 @@
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user