Compare commits
6 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 8b2be815a5 | |||
| 81704a5182 | |||
| e0ab2cf853 | |||
| 21eec2959c | |||
| 2011d1104c | |||
| f6fb374c23 |
@@ -2144,6 +2144,8 @@ namespace SteamWare.IO
|
|||||||
public bool setRSV(string chiave, string valore)
|
public bool setRSV(string chiave, string valore)
|
||||||
{
|
{
|
||||||
bool answ = false;
|
bool answ = false;
|
||||||
|
if (!string.IsNullOrEmpty(chiave))
|
||||||
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
cache.StringSet(chiave, valore);
|
cache.StringSet(chiave, valore);
|
||||||
@@ -2153,6 +2155,11 @@ namespace SteamWare.IO
|
|||||||
{
|
{
|
||||||
Logging.Instance.Error(string.Format("Eccezzione in setRSV:{0}{1}", Environment.NewLine, exc));
|
Logging.Instance.Error(string.Format("Eccezzione in setRSV:{0}{1}", Environment.NewLine, exc));
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
Logging.Instance.Error("Errore: chiave non valida (vuota) in setRSV");
|
||||||
|
}
|
||||||
return answ;
|
return answ;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -2161,6 +2161,8 @@ namespace SteamWare
|
|||||||
public bool setRSV(string chiave, string valore)
|
public bool setRSV(string chiave, string valore)
|
||||||
{
|
{
|
||||||
bool answ = false;
|
bool answ = false;
|
||||||
|
if (!string.IsNullOrEmpty(chiave))
|
||||||
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
cache.StringSet(chiave, valore);
|
cache.StringSet(chiave, valore);
|
||||||
@@ -2168,7 +2170,12 @@ namespace SteamWare
|
|||||||
}
|
}
|
||||||
catch (Exception exc)
|
catch (Exception exc)
|
||||||
{
|
{
|
||||||
logger.lg.scriviLog(string.Format($"Errore in setRSV | chiave: {chiave} | valore: {valore}{Environment.NewLine}{exc}"), tipoLog.EXCEPTION);
|
logger.lg.scriviLog($"Eccezzione in setRSV | chiave: {chiave} | valore: {valore}{Environment.NewLine}{exc}", tipoLog.EXCEPTION);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
logger.lg.scriviLog("Errore: chiave non valida (vuota) in setRSV", tipoLog.ERROR);
|
||||||
}
|
}
|
||||||
return answ;
|
return answ;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user