Compare commits
6 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 8b2be815a5 | |||
| 81704a5182 | |||
| e0ab2cf853 | |||
| 21eec2959c | |||
| 2011d1104c | |||
| f6fb374c23 |
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user