Fix check licenza

This commit is contained in:
Samuele E. Locatelli
2019-10-04 18:39:24 +02:00
parent 0960c5631c
commit e8d2c5206c
2 changed files with 3 additions and 46 deletions
+3 -22
View File
@@ -96,25 +96,6 @@ namespace AppData
}
}
/// <summary>
/// nome ambiente sw
/// </summary>
public static string appName
{
get
{
string answ = "";
try
{
answ = memLayer.ML.CRS("appName");
}
catch (Exception exc)
{
logger.lg.scriviLog(string.Format("Errore recupero appName: {0}", exc), tipoLog.EXCEPTION);
}
return answ;
}
}
/// <summary>
/// nome installazione sw
/// </summary>
public static string installazione
@@ -159,7 +140,7 @@ namespace AppData
{
get
{
string answ = memLayer.ML.confReadString("appName");
string answ = memLayer.ML.CRS("appName");
return answ;
}
}
@@ -174,7 +155,7 @@ namespace AppData
try
{
answ = utentiAttivi <= licenzeAttive;
if (!answ && memLayer.ML.confReadInt("_logLevel") > 5)
if (!answ && memLayer.ML.CRI("_logLevel") > 5)
{
logger.lg.scriviLog(string.Format("WARNING licenze: utenti attivi {0} / licenziati {1}", utentiAttivi, licenzeAttive), tipoLog.WARNING);
}
@@ -215,7 +196,7 @@ namespace AppData
// se non trovato provo installazione + environment...
if (tabKey.Count == 0)
{
tabKey = dataLayer.man.taAKV.getByKey(appName);
tabKey = dataLayer.man.taAKV.getByKey(applicazione);
}
if (tabKey.Count > 0)
{
-24
View File
@@ -30,29 +30,6 @@
</httpModules>
<sessionState timeout="600" mode="Custom" customProvider="MySessionStateStore">
<providers>
<!-- For more details check https://github.com/Azure/aspnet-redis-providers/wiki -->
<!-- Either use 'connectionString' OR 'settingsClassName' and 'settingsMethodName' OR use 'host','port','accessKey','ssl','connectionTimeoutInMilliseconds' and 'operationTimeoutInMilliseconds'. -->
<!-- 'throwOnError','retryTimeoutInMilliseconds','databaseId' and 'applicationName' can be used with both options. -->
<!--
<add name="MySessionStateStore"
host = "127.0.0.1" [String]
port = "" [number]
accessKey = "" [String]
ssl = "false" [true|false]
throwOnError = "true" [true|false]
retryTimeoutInMilliseconds = "5000" [number]
databaseId = "0" [number]
applicationName = "" [String]
connectionTimeoutInMilliseconds = "5000" [number]
operationTimeoutInMilliseconds = "1000" [number]
connectionString = "<Valid StackExchange.Redis connection string>" [String]
settingsClassName = "<Assembly qualified class name that contains settings method specified below. Which basically return 'connectionString' value>" [String]
settingsMethodName = "<Settings method should be defined in settingsClass. It should be public, static, does not take any parameters and should have a return type of 'String', which is basically 'connectionString' value.>" [String]
loggingClassName = "<Assembly qualified class name that contains logging method specified below>" [String]
loggingMethodName = "<Logging method should be defined in loggingClass. It should be public, static, does not take any parameters and should have a return type of System.IO.TextWriter.>" [String]
redisSerializerType = "<Assembly qualified class name that implements Microsoft.Web.Redis.ISerializer>" [String]
/>
-->
<add name="MySessionStateStore" type="Microsoft.Web.Redis.RedisSessionStateProvider" host="localhost" accessKey="localhost" ssl="false" applicationName="C.TRACK" databaseId="2" />
</providers>
</sessionState>
@@ -64,7 +41,6 @@
</scripting>
</system.web.extensions>-->
<appSettings>
<add key="appName" value="CTRACK" />
<add key="CodModulo" value="C.TRACK" />
<add key="cacheOnRedis" value="true" />
<add key="maxAgeAppConf_min" value="15" />