From 09d6b85bd42facbf7bd8f0b250f38f4aa18f5a37 Mon Sep 17 00:00:00 2001 From: Samuele Locatelli Date: Sat, 18 Apr 2026 09:28:21 +0200 Subject: [PATCH] correzione metodi con ritorno void --- MP.IOC/Data/MpDataService.cs | 20 +++++++++++++------- MP.IOC/MP.IOC.csproj | 2 +- MP.IOC/Resources/ChangeLog.html | 2 +- MP.IOC/Resources/VersNum.txt | 2 +- MP.IOC/Resources/manifest.xml | 2 +- 5 files changed, 17 insertions(+), 11 deletions(-) diff --git a/MP.IOC/Data/MpDataService.cs b/MP.IOC/Data/MpDataService.cs index 613427ed..c80bc1d0 100644 --- a/MP.IOC/Data/MpDataService.cs +++ b/MP.IOC/Data/MpDataService.cs @@ -154,7 +154,8 @@ namespace MP.IOC.Data Dictionary 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(); - 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; } diff --git a/MP.IOC/MP.IOC.csproj b/MP.IOC/MP.IOC.csproj index f2c133be..3ace2348 100644 --- a/MP.IOC/MP.IOC.csproj +++ b/MP.IOC/MP.IOC.csproj @@ -4,7 +4,7 @@ net8.0 enable enable - 6.16.2604.1807 + 6.16.2604.1809 diff --git a/MP.IOC/Resources/ChangeLog.html b/MP.IOC/Resources/ChangeLog.html index dd9f3a86..fd2338c6 100644 --- a/MP.IOC/Resources/ChangeLog.html +++ b/MP.IOC/Resources/ChangeLog.html @@ -1,6 +1,6 @@ Modulo MP-IOC -

Versione: 6.16.2604.1807

+

Versione: 6.16.2604.1809


Note di rilascio:
  • diff --git a/MP.IOC/Resources/VersNum.txt b/MP.IOC/Resources/VersNum.txt index 92524b8a..91c01ecf 100644 --- a/MP.IOC/Resources/VersNum.txt +++ b/MP.IOC/Resources/VersNum.txt @@ -1 +1 @@ -6.16.2604.1807 +6.16.2604.1809 diff --git a/MP.IOC/Resources/manifest.xml b/MP.IOC/Resources/manifest.xml index 608a1c2b..b484567c 100644 --- a/MP.IOC/Resources/manifest.xml +++ b/MP.IOC/Resources/manifest.xml @@ -1,6 +1,6 @@ - 6.16.2604.1807 + 6.16.2604.1809 https://nexus.steamware.net/repository/SWS/MP-IOC/stable/LAST/MP.IOC.zip https://nexus.steamware.net/repository/SWS/MP-IOC/stable/LAST/ChangeLog.html false