From 202c5f6fafbc3dad3cc579a9721f468e54da6726 Mon Sep 17 00:00:00 2001 From: Samuele Locatelli Date: Wed, 13 Jul 2022 08:28:38 +0200 Subject: [PATCH] Refresh pacchetti nuget + minor fix --- MP.Mon/Components/DetailMSE.razor.cs | 4 ---- MP.Mon/Data/MpDataService.cs | 8 ++++---- MP.Mon/MP.Mon.csproj | 2 +- MP.Mon/Resources/ChangeLog.html | 2 +- MP.Mon/Resources/VersNum.txt | 2 +- MP.Mon/Resources/manifest.xml | 2 +- 6 files changed, 8 insertions(+), 12 deletions(-) diff --git a/MP.Mon/Components/DetailMSE.razor.cs b/MP.Mon/Components/DetailMSE.razor.cs index baaee191..2d14f15e 100644 --- a/MP.Mon/Components/DetailMSE.razor.cs +++ b/MP.Mon/Components/DetailMSE.razor.cs @@ -68,10 +68,6 @@ namespace MP.Mon.Components } if (needUpdate) { - if (false) - { - Log.Trace($"Elapsed Timer {CurrRecord?.CodMacchina}"); - } await InvokeAsync(() => StateHasChanged()); } OldRecord = CurrRecord; diff --git a/MP.Mon/Data/MpDataService.cs b/MP.Mon/Data/MpDataService.cs index 11036e53..a866fd02 100644 --- a/MP.Mon/Data/MpDataService.cs +++ b/MP.Mon/Data/MpDataService.cs @@ -119,12 +119,12 @@ namespace MP.Mon.Data { Stopwatch stopWatch = new Stopwatch(); stopWatch.Start(); - List result = new List(); + List? result = new List(); // cerco in redis... - var rawData = await redisDb.StringGetAsync(redisMseKey); - if (!string.IsNullOrEmpty(rawData)) + RedisValue rawData = await redisDb.StringGetAsync(redisMseKey); + if (rawData != RedisValue.Null || rawData != RedisValue.EmptyString) { - result = JsonConvert.DeserializeObject>(rawData); + result = JsonConvert.DeserializeObject>($"{rawData}"); stopWatch.Stop(); TimeSpan ts = stopWatch.Elapsed; Log.Debug($"Read from REDIS: {ts.TotalMilliseconds}ms"); diff --git a/MP.Mon/MP.Mon.csproj b/MP.Mon/MP.Mon.csproj index 7884b444..ace36f67 100644 --- a/MP.Mon/MP.Mon.csproj +++ b/MP.Mon/MP.Mon.csproj @@ -4,7 +4,7 @@ net6.0 enable enable - 6.15.2207.1219 + 6.15.2207.1308 diff --git a/MP.Mon/Resources/ChangeLog.html b/MP.Mon/Resources/ChangeLog.html index bf88f821..e3216031 100644 --- a/MP.Mon/Resources/ChangeLog.html +++ b/MP.Mon/Resources/ChangeLog.html @@ -1,6 +1,6 @@ Modulo MON MAPO -

Versione: 6.15.2207.1219

+

Versione: 6.15.2207.1308


Note di rilascio:
  • diff --git a/MP.Mon/Resources/VersNum.txt b/MP.Mon/Resources/VersNum.txt index 46d049fe..83b476d6 100644 --- a/MP.Mon/Resources/VersNum.txt +++ b/MP.Mon/Resources/VersNum.txt @@ -1 +1 @@ -6.15.2207.1219 +6.15.2207.1308 diff --git a/MP.Mon/Resources/manifest.xml b/MP.Mon/Resources/manifest.xml index 283e348b..3d9ab476 100644 --- a/MP.Mon/Resources/manifest.xml +++ b/MP.Mon/Resources/manifest.xml @@ -1,6 +1,6 @@ - 6.15.2207.1219 + 6.15.2207.1308 https://nexus.steamware.net/repository/SWS/MP-MON/stable/LAST/MP.Mon.zip https://nexus.steamware.net/repository/SWS/MP-MON/stable/LAST/ChangeLog.html false