Compare commits

...

6 Commits

Author SHA1 Message Date
Samuele Locatelli 8b2be815a5 Merge branch 'release/fixEmptyRedisVal' 2021-08-19 12:08:05 +02:00
Samuele Locatelli 81704a5182 permesso di reset valori REDIS 2021-08-19 12:07:37 +02:00
Samuele Locatelli e0ab2cf853 Merge tag 'fixSe' into develop
Fix setRSV x caso chaive empty
2021-08-19 11:34:11 +02:00
Samuele Locatelli 21eec2959c Merge branch 'release/fixSe' 2021-08-19 11:33:57 +02:00
Samuele Locatelli 2011d1104c Update s evitare eccezioni in setRSV se key empty 2021-08-19 11:33:25 +02:00
Samuele Locatelli f6fb374c23 Merge tag 'ReloadAppConfFix' into develop
Riprostinato metodo init appConf
2021-08-11 15:27:23 +02:00
2 changed files with 24 additions and 10 deletions
+12 -5
View File
@@ -2144,14 +2144,21 @@ namespace SteamWare.IO
public bool setRSV(string chiave, string valore)
{
bool answ = false;
try
if (!string.IsNullOrEmpty(chiave))
{
cache.StringSet(chiave, valore);
answ = true;
try
{
cache.StringSet(chiave, valore);
answ = true;
}
catch (Exception exc)
{
Logging.Instance.Error(string.Format("Eccezzione in setRSV:{0}{1}", Environment.NewLine, exc));
}
}
catch (Exception exc)
else
{
Logging.Instance.Error(string.Format("Eccezzione in setRSV:{0}{1}", Environment.NewLine, exc));
Logging.Instance.Error("Errore: chiave non valida (vuota) in setRSV");
}
return answ;
}
+12 -5
View File
@@ -2161,14 +2161,21 @@ namespace SteamWare
public bool setRSV(string chiave, string valore)
{
bool answ = false;
try
if (!string.IsNullOrEmpty(chiave))
{
cache.StringSet(chiave, valore);
answ = true;
try
{
cache.StringSet(chiave, valore);
answ = true;
}
catch (Exception exc)
{
logger.lg.scriviLog($"Eccezzione in setRSV | chiave: {chiave} | valore: {valore}{Environment.NewLine}{exc}", tipoLog.EXCEPTION);
}
}
catch (Exception exc)
else
{
logger.lg.scriviLog(string.Format($"Errore in setRSV | chiave: {chiave} | valore: {valore}{Environment.NewLine}{exc}"), tipoLog.EXCEPTION);
logger.lg.scriviLog("Errore: chiave non valida (vuota) in setRSV", tipoLog.ERROR);
}
return answ;
}