diff --git a/MP.Land/Data/SyncService.cs b/MP.Land/Data/SyncService.cs index aa22bf70..93b379cd 100644 --- a/MP.Land/Data/SyncService.cs +++ b/MP.Land/Data/SyncService.cs @@ -15,6 +15,8 @@ namespace MP.Land.Data { public class SyncService { + #region Public Constructors + /// /// Init classe /// @@ -26,13 +28,26 @@ namespace MP.Land.Data _configuration = configuration; } - private static ILogger _logger { get; set; } = null!; - private static IConfiguration? _configuration; + #endregion Public Constructors + + #region Public Properties + + public List AKVList { get; set; } = new List(); + public string Applicazione { get; set; } = ""; /// - /// URL dell'API x chiamate gestione licenze + /// Codice cliente/installazione /// - private static string apiUrl = "https://liman.egalware.com/ELM.API/"; + public string Installazione { get; set; } = ""; + + /// + /// Master key licenza principale + /// + public string MasterKey { get; set; } = ""; + + #endregion Public Properties + + #region Public Methods /// /// Stato server gestione licenze @@ -55,30 +70,7 @@ namespace MP.Land.Data } return await Task.FromResult(answ); } - public List AKVList { get; set; } = new List(); - public string Applicazione { get; set; } = ""; - /// - /// Codice cliente/installazione - /// - public string Installazione { get; set; } = ""; - /// - /// Cerca di recuperare valore string da elenco AKV - /// - /// Chiave AKV richiesta - /// - protected string getAVKStr(string varReq) - { - string answ = ""; - if (AKVList != null && AKVList.Count > 0) - { - var currRec = AKVList.Where(x => x.NomeVar == varReq).FirstOrDefault(); - if (currRec != null) - { - answ = $"{currRec.ValString}"; - } - } - return answ; - } + /// /// Init della classe con variabili di base da Redis/DB /// @@ -92,11 +84,6 @@ namespace MP.Land.Data return fatto; } - /// - /// Master key licenza principale - /// - public string MasterKey { get; set; } = ""; - /// /// Lista record AnagKeyVal /// @@ -159,5 +146,47 @@ namespace MP.Land.Data } return await Task.FromResult(answ); } + + #endregion Public Methods + + #region Protected Methods + + /// + /// Cerca di recuperare valore string da elenco AKV + /// + /// Chiave AKV richiesta + /// + protected string getAVKStr(string varReq) + { + string answ = ""; + if (AKVList != null && AKVList.Count > 0) + { + var currRec = AKVList.Where(x => x.NomeVar == varReq).FirstOrDefault(); + if (currRec != null) + { + answ = $"{currRec.ValString}"; + } + } + return answ; + } + + #endregion Protected Methods + + #region Private Fields + + private static IConfiguration? _configuration; + + /// + /// URL dell'API x chiamate gestione licenze + /// + private static string apiUrl = "https://liman.egalware.com/ELM.API/"; + + #endregion Private Fields + + #region Private Properties + + private static ILogger _logger { get; set; } = null!; + + #endregion Private Properties } -} +} \ No newline at end of file diff --git a/MP.Land/MP.Land.csproj b/MP.Land/MP.Land.csproj index 52c18337..718c9b27 100644 --- a/MP.Land/MP.Land.csproj +++ b/MP.Land/MP.Land.csproj @@ -3,7 +3,7 @@ net6.0 MP.Land - 6.16.2410.1718 + 6.16.2410.1719 diff --git a/MP.Land/Resources/ChangeLog.html b/MP.Land/Resources/ChangeLog.html index df8df407..99342e44 100644 --- a/MP.Land/Resources/ChangeLog.html +++ b/MP.Land/Resources/ChangeLog.html @@ -1,6 +1,6 @@ Modulo Tablet MAPO - DotNet6 -

Versione: 6.16.2410.1718

+

Versione: 6.16.2410.1719


Note di rilascio:
    diff --git a/MP.Land/Resources/VersNum.txt b/MP.Land/Resources/VersNum.txt index 23fe602d..8021a159 100644 --- a/MP.Land/Resources/VersNum.txt +++ b/MP.Land/Resources/VersNum.txt @@ -1 +1 @@ -6.16.2410.1718 +6.16.2410.1719 diff --git a/MP.Land/Resources/manifest.xml b/MP.Land/Resources/manifest.xml index 069822ec..c50f8022 100644 --- a/MP.Land/Resources/manifest.xml +++ b/MP.Land/Resources/manifest.xml @@ -1,6 +1,6 @@ - 6.16.2410.1718 + 6.16.2410.1719 https://nexus.steamware.net/repository/SWS/MP-LAND/stable/LAST/MP.Land.zip https://nexus.steamware.net/repository/SWS/MP-LAND/stable/LAST/ChangeLog.html false