correzione metodi con ritorno void

This commit is contained in:
Samuele Locatelli
2026-04-18 09:28:21 +02:00
parent 52351c2ca7
commit 09d6b85bd4
5 changed files with 17 additions and 11 deletions
+13 -7
View File
@@ -154,7 +154,8 @@ namespace MP.IOC.Data
Dictionary<string, string> currTask = mTaskMacchina(idxMacchina);
// rimetto in tName da eseguire...
currTask[taskKey.ToString()] = savedVal;
answ = RedisSetHashDict(currHash, currTask);
RedisSetHashDict(currHash, currTask);
answ = true;
Log.Info($"re-issued task4machine: idxMacchina: {idxMacchina} | taskKey: {taskKey} | savedVal: {savedVal}");
}
}
@@ -182,7 +183,8 @@ namespace MP.IOC.Data
// leggo tName attuali...
var currVal = mOptParMacchina(idxMacchina);
currVal[taskKey] = taskVal;
answ = RedisSetHashDict(currHash, currVal);
RedisSetHashDict(currHash, currVal);
answ = true;
}
catch (Exception exc)
{
@@ -217,7 +219,8 @@ namespace MP.IOC.Data
{
currTask.Add($"{taskKey}", taskVal);
}
answ = RedisSetHashDict(currHash, currTask);
RedisSetHashDict(currHash, currTask);
answ = true;
Log.Info($"Task ADD | hash: {currHash} | idxMacchina: {idxMacchina} | taskKey: {taskKey} | taskVal: {taskVal}");
}
catch { }
@@ -231,13 +234,15 @@ namespace MP.IOC.Data
// leggo tName SALVATI attuali...
savedTask = mSavedTaskMacchina(idxMacchina);
savedTask[taskKey.ToString()] = taskVal;
answ = RedisSetHashDict(currSavedParHash, savedTask);
RedisSetHashDict(currSavedParHash, savedTask);
answ = true;
break;
case Enums.taskType.endProd:
// salvo un DICT vuoto x resettare
savedTask = new Dictionary<string, string>();
answ = RedisSetHashDict(currSavedParHash, savedTask);
RedisSetHashDict(currSavedParHash, savedTask);
answ = true;
break;
default:
@@ -301,11 +306,12 @@ namespace MP.IOC.Data
}
}
// salvo!
answ = await RedisSetHashDictAsync(currHash, currTask);
await RedisSetHashDictAsync(currHash, currTask);
answ = true;
if (needSaveParams)
{
answ = await RedisSetHashDictAsync(currSavedParHash, savedTask);
await RedisSetHashDictAsync(currSavedParHash, savedTask);
}
return answ;
}
+1 -1
View File
@@ -4,7 +4,7 @@
<TargetFramework>net8.0</TargetFramework>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<Version>6.16.2604.1807</Version>
<Version>6.16.2604.1809</Version>
</PropertyGroup>
<ItemGroup>
+1 -1
View File
@@ -1,6 +1,6 @@
<body>
<i>Modulo MP-IOC </i>
<h4>Versione: 6.16.2604.1807</h4>
<h4>Versione: 6.16.2604.1809</h4>
<br /> Note di rilascio:
<ul>
<li>
+1 -1
View File
@@ -1 +1 @@
6.16.2604.1807
6.16.2604.1809
+1 -1
View File
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<item>
<version>6.16.2604.1807</version>
<version>6.16.2604.1809</version>
<url>https://nexus.steamware.net/repository/SWS/MP-IOC/stable/LAST/MP.IOC.zip</url>
<changelog>https://nexus.steamware.net/repository/SWS/MP-IOC/stable/LAST/ChangeLog.html</changelog>
<mandatory>false</mandatory>