diff --git a/Core/Enum.cs b/Core/Enum.cs index e071fa1..291abae 100644 --- a/Core/Enum.cs +++ b/Core/Enum.cs @@ -1,5 +1,7 @@ -using System; +using Newtonsoft.Json.Converters; +using System; using System.Collections.Generic; +using System.Text.Json.Serialization; namespace Core { @@ -73,39 +75,74 @@ namespace Core { "WinApp", "WinApp" } }; +#if false + [JsonConverter(typeof(StringEnumConverter))] + public enum AppType + { + None, + Cli, + Machine, + WebApp, + WinApp, + LicenceApp + } +#endif + /// /// Elenco tipi di azioni che si possono chiedere ad EgwACC /// + [JsonConverter(typeof(StringEnumConverter))] public enum EgwAccTask { /// /// Non definito (init) /// ND = 0, + + /// + /// Richiesta ricerca generica app da sorgenti mappate (registro, path...) ricevute in input + /// + AppSearch, + /// /// Richiesta info device (analoghe a quelle del setup iniziale in Enroll) /// DeviceInfoGet, + /// /// Richiesta verifica forzata da remoto /// ForceCheck, + + /// + /// Richiede reload forzato (come da tray menu con Reload senza check update) + /// + ForceReload, + /// /// Richiede update forzato (come da tray menu con restart tramite bootstrap process esterno) /// ForceUpdate, + /// /// Info tipo License (Oxysec key) /// OxyLicenseGet, + /// /// Forza Reset parametri opzionali impostabili da remoto /// ParamDictReset, + /// /// Upsert di parametri operativi (gestiti in remoto) /// - ParamUpsert + ParamUpsert, + + /// + /// Upsert valori TargetList (gestiti in remoto) + /// + TargetListUpsert } } } \ No newline at end of file diff --git a/Core/Models/ControlTarget.cs b/Core/Models/ControlTarget.cs new file mode 100644 index 0000000..510cdb7 --- /dev/null +++ b/Core/Models/ControlTarget.cs @@ -0,0 +1,45 @@ +using Newtonsoft.Json.Converters; +using System; +using System.Collections.Generic; +using System.ComponentModel.DataAnnotations; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Core.Models +{ + public class ControlTarget + { + [Key] + public int Idx { get; set; } = 0; + + /// + /// Tipo applicazione da monitorare + /// + public string ApplicationType { get; set; } = ""; +#if false + [JsonConverter(typeof(StringEnumConverter))] + public CoreEnum.AppType ApplicationType { get; set; } = CoreEnum.AppType.None; +#endif + + /// + /// Path di base da monitorare + /// + public string BasePath { get; set; } = ""; + + /// + /// Pattern di ricerca + /// + public string SearchPattern { get; set; } = ""; + + /// + /// Indica se il path sia abilitato + /// + public bool IsEnabled { get; set; } = true; + + /// + /// Indica se sia abilitato l'update x l'item + /// + public bool UpdateEnabled { get; set; } = false; + } +} diff --git a/LiMan.Api/Resources/ChangeLog.html b/LiMan.Api/Resources/ChangeLog.html index 14505f6..139cfe3 100644 --- a/LiMan.Api/Resources/ChangeLog.html +++ b/LiMan.Api/Resources/ChangeLog.html @@ -1,6 +1,6 @@ License Manager -

Versione: 2.1.2501.2019

+

Versione: 2.1.2501.2110


Note di rilascio: