Update modalità track data con dettaglio log completo
This commit is contained in:
+28
-1
@@ -818,6 +818,33 @@ namespace IOB_UT_NEXT
|
||||
return answ;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Salvataggio di una hash di valori
|
||||
/// </summary>
|
||||
/// <param name="hashKey">chiave</param>
|
||||
/// <param name="hashFields">valori</param>
|
||||
/// <param name="hashExpire">scadenza preimpostata hash datetime, se null NON scade</param>
|
||||
/// <returns></returns>
|
||||
public bool redSaveHash(string hashKey, KeyValuePair<string, string>[] hashFields, DateTime? hashExpire)
|
||||
{
|
||||
bool answ = false;
|
||||
// cerco se ci sia valore in redis...
|
||||
try
|
||||
{
|
||||
RedisKey chiave = hashKey;
|
||||
answ = redSaveHash(hashKey, hashFields);
|
||||
if (hashExpire != null)
|
||||
{
|
||||
cache.KeyExpire(chiave, hashExpire);
|
||||
}
|
||||
}
|
||||
catch (Exception exc)
|
||||
{
|
||||
Logging.Instance.Error($"redSaveHash {exc}");
|
||||
}
|
||||
return answ;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Salvataggio di una hash di valori
|
||||
/// </summary>
|
||||
@@ -1324,7 +1351,7 @@ namespace IOB_UT_NEXT
|
||||
// init dati di base...
|
||||
redServKey = redHash($"MP");
|
||||
redIobKey = redHash($"IOB:{currCodIob}");
|
||||
redIobTrackKey = redHash($"IOB:Track:{currCodIob}");
|
||||
redIobTrackKey = redHash($"IOB:FluxLog:{currCodIob}");
|
||||
redIobChannel = $"IobChannel_{currCodIob}";
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user