From 8e3beb7e35eeb910fc20b1b39ca8a9c0f458b545 Mon Sep 17 00:00:00 2001 From: Samuele Locatelli Date: Fri, 9 Dec 2022 19:02:12 +0100 Subject: [PATCH] Code Cleanup & reorg --- MP.Data/MessagePipe.cs | 30 +++++++----------------------- MP.SPEC/MP.SPEC.csproj | 2 +- MP.SPEC/Resources/ChangeLog.html | 2 +- MP.SPEC/Resources/VersNum.txt | 2 +- MP.SPEC/Resources/manifest.xml | 2 +- 5 files changed, 11 insertions(+), 27 deletions(-) diff --git a/MP.Data/MessagePipe.cs b/MP.Data/MessagePipe.cs index 6b9cac0c..cd8cf7b7 100644 --- a/MP.Data/MessagePipe.cs +++ b/MP.Data/MessagePipe.cs @@ -29,7 +29,12 @@ namespace MP.Data #endregion Public Events #region Public Methods - private Dictionary numSent = new Dictionary(); + + /// + /// Invio messaggio sul canale + salvataggio in cache REDIS + /// + /// Chiave REDIS x salvare valore + /// Messaggio serializzato da inviare public bool saveAndSendMessage(string memKey, string message) { bool answ = false; @@ -59,22 +64,6 @@ namespace MP.Data numSent[memKey] = 0; } return answ; - -#if false - - bool answ = false; - // invio notifica tramite il canale richiesto - answ = sendMessage(message); - if (redisDb != null) - { - redisDb.StringSetAsync(memKey, message); - if (enableLog) - { - Log.Info($"Redis Cache Key: {memKey}"); - } - } - return answ; -#endif } /// @@ -101,6 +90,7 @@ namespace MP.Data #region Private Fields private bool enableLog = false; + private Dictionary numSent = new Dictionary(); private IConnectionMultiplexer redis; private IDatabase redisDb; @@ -136,12 +126,6 @@ namespace MP.Data } #endregion Private Methods - - /// - /// Invio messaggio sul canale + salvataggio in cache REDIS - /// - /// Chiave REDIS x salvare valore - /// } public class PubSubEventArgs : EventArgs diff --git a/MP.SPEC/MP.SPEC.csproj b/MP.SPEC/MP.SPEC.csproj index 7fa7a059..f3b06272 100644 --- a/MP.SPEC/MP.SPEC.csproj +++ b/MP.SPEC/MP.SPEC.csproj @@ -5,7 +5,7 @@ enable enable MP.SPEC - 6.16.2212.917 + 6.16.2212.918 diff --git a/MP.SPEC/Resources/ChangeLog.html b/MP.SPEC/Resources/ChangeLog.html index 4705158a..54c26401 100644 --- a/MP.SPEC/Resources/ChangeLog.html +++ b/MP.SPEC/Resources/ChangeLog.html @@ -1,6 +1,6 @@ Modulo MAPOSPEC -

Versione: 6.16.2212.917

+

Versione: 6.16.2212.918


Note di rilascio:
  • diff --git a/MP.SPEC/Resources/VersNum.txt b/MP.SPEC/Resources/VersNum.txt index b33cddbb..657da476 100644 --- a/MP.SPEC/Resources/VersNum.txt +++ b/MP.SPEC/Resources/VersNum.txt @@ -1 +1 @@ -6.16.2212.917 +6.16.2212.918 diff --git a/MP.SPEC/Resources/manifest.xml b/MP.SPEC/Resources/manifest.xml index 68def6b2..8998e5c9 100644 --- a/MP.SPEC/Resources/manifest.xml +++ b/MP.SPEC/Resources/manifest.xml @@ -1,6 +1,6 @@ - 6.16.2212.917 + 6.16.2212.918 https://nexus.steamware.net/repository/SWS/MP-SPEC/stable/LAST/MP.SPEC.zip https://nexus.steamware.net/repository/SWS/MP-SPEC/stable/LAST/ChangeLog.html false