update integrazione controllo licenze (ancora test x payload)

This commit is contained in:
Samuele Locatelli
2021-10-20 09:22:10 +02:00
parent 462b0ba683
commit 57c85647b0
3 changed files with 42 additions and 0 deletions
+12
View File
@@ -32,6 +32,18 @@ namespace GPW_Admin
#endregion Public Events
#region Public Properties
/// <summary>
/// controllo stato licenze!
/// </summary>
public bool chkLicOk
{
get => (licenzeGPW.checkLicenze && licenzeGPW.checkPayload);
}
#endregion Public Properties
#region Public Methods
/// <summary>
+4
View File
@@ -10,5 +10,9 @@
{
"outputFile": "Content/Site.css",
"inputFile": "Content/Site.less"
},
{
"outputFile": "Content/font.css",
"inputFile": "Content/font.less"
}
]
+26
View File
@@ -60,6 +60,32 @@ namespace GPW_data
}
}
/// <summary>
/// verifica se il payload delle licenze attivate sia valido (con server online)
/// </summary>
public static bool checkPayload
{
get
{
bool answ = false;
// FIXME TODO !!!
//bool answ = false;
//try
//{
// answ = utentiAttivi <= licenzeAttive;
// if (!answ && memLayer.ML.confReadInt("_logLevel") > 5)
// {
// logger.lg.scriviLog(string.Format("WARNING licenze: utenti attivi {0} / licenziati {1}", utentiAttivi, licenzeAttive), tipoLog.WARNING);
// }
//}
//catch
//{ }
return answ;
}
}
/// <summary>
/// nome installazione sw
/// </summary>