Completata pèulizia SPEC!!!

This commit is contained in:
Samuele Locatelli
2026-06-01 09:37:10 +02:00
parent b19f21fdff
commit bd2b35b2e6
49 changed files with 413 additions and 1157 deletions
File diff suppressed because it is too large Load Diff
+1 -1
View File
@@ -1029,7 +1029,7 @@ namespace MP.Data.Controllers
}
catch (Exception exc)
{
Log.Error($"Eccezione in MacchineByMatrOper{Environment.NewLine}{exc}");
Log.Error($"Eccezione in MacchineByMatrOperAsync{Environment.NewLine}{exc}");
}
return dbResult;
}
+6 -6
View File
@@ -104,7 +104,7 @@ namespace MP.Data.Services
}
else
{
result = dbController.ConfigGetAll();
result = await dbController.ConfigGetAllAsync();
// serializzo e salvo...
rawData = JsonConvert.SerializeObject(result);
_redisDb.StringSet(currKey, rawData, LongCache);
@@ -114,7 +114,7 @@ namespace MP.Data.Services
result = new List<ConfigModel>();
}
sw.Stop();
Log.Debug($"ConfigGetAll | {source} | {sw.Elapsed.TotalMilliseconds}ms");
Log.Debug($"ConfigGetAllAsync | {source} | {sw.Elapsed.TotalMilliseconds}ms");
return result;
}
@@ -160,7 +160,7 @@ namespace MP.Data.Services
}
else
{
result = await Task.FromResult(dbController.ListLinkAll());
result = await dbController.ListLinkAllAsync();
// serializzp e salvo...
rawData = JsonConvert.SerializeObject(result);
await _redisDb.StringSetAsync(currKey, rawData, UltraLongCache);
@@ -170,7 +170,7 @@ namespace MP.Data.Services
result = new List<LinkMenuModel>();
}
sw.Stop();
Log.Debug($"ListLinkAll | tipoLink: * | {source} | {sw.Elapsed.TotalMilliseconds}ms");
Log.Debug($"ListLinkAllAsync | tipoLink: * | {source} | {sw.Elapsed.TotalMilliseconds}ms");
return result;
}
@@ -196,7 +196,7 @@ namespace MP.Data.Services
}
else
{
result = await Task.FromResult(dbController.ListLinkFilt(tipoLink));
result = await dbController.ListLinkFiltAsync(tipoLink);
// serializzp e salvo...
rawData = JsonConvert.SerializeObject(result);
await _redisDb.StringSetAsync(currKey, rawData, UltraLongCache);
@@ -232,7 +232,7 @@ namespace MP.Data.Services
}
else
{
result = await Task.FromResult(dbController.MacchineByMatrOper(MatrOpr));
result = await dbController.MacchineByMatrOperAsync(MatrOpr);
// serializzp e salvo...
rawData = JsonConvert.SerializeObject(result);
await _redisDb.StringSetAsync(currKey, rawData, UltraLongCache);
+3 -3
View File
@@ -113,17 +113,17 @@ namespace MP.Data.Services
if (resto == 0)
{
// invio in channel blink il segnale
blinkPipe.SendMessageAsync("true");
await blinkPipe.SendMessageAsync("true");
Log.Debug("Elapsed Fast Timer Blink");
}
else
{
// invio in channel blink segnale false
blinkPipe.SendMessageAsync("false");
await blinkPipe.SendMessageAsync("false");
// rileggo dati...
var newData = await MseGetAll();
// invio tramite la pipe...
dataPipe.SendMessageAsync(JsonConvert.SerializeObject(newData));
await dataPipe.SendMessageAsync(JsonConvert.SerializeObject(newData));
Log.Debug("Elapsed Fast Timer reload");
}
});
+2 -2
View File
@@ -66,7 +66,7 @@ namespace MP.Data.Services
}
else
{
result = dbController.ConfigGetAll();
result = await dbController.ConfigGetAllAsync();
// serializzo e salvo...
rawData = JsonConvert.SerializeObject(result);
_redisDb.StringSet(currKey, rawData, LongCache);
@@ -76,7 +76,7 @@ namespace MP.Data.Services
result = new List<ConfigModel>();
}
sw.Stop();
Log.Debug($"ConfigGetAll | {source} | {sw.Elapsed.TotalMilliseconds}ms");
Log.Debug($"ConfigGetAllAsync | {source} | {sw.Elapsed.TotalMilliseconds}ms");
return result;
}
+1 -1
View File
@@ -112,7 +112,7 @@ namespace MP.Data.Services
result = new List<ConfigModel>();
}
sw.Stop();
Log.Debug($"ConfigGetAll | {source} | {sw.Elapsed.TotalMilliseconds}ms");
Log.Debug($"ConfigGetAllAsync | {source} | {sw.Elapsed.TotalMilliseconds}ms");
return result;
}
+3 -3
View File
@@ -133,17 +133,17 @@ namespace MP.Data.Services
if (resto == 0)
{
// invio in channel blink il segnale
blinkPipe.SendMessageAsync("true");
await blinkPipe.SendMessageAsync("true");
Log.Trace("Elapsed Fast Timer Blink");
}
else
{
// invio in channel blink segnale false
blinkPipe.SendMessageAsync("false");
await blinkPipe.SendMessageAsync("false");
// rileggo dati...
var newData = await MseGetAll();
// invio tramite la pipe...
dataPipe.SendMessageAsync(JsonConvert.SerializeObject(newData));
await dataPipe.SendMessageAsync(JsonConvert.SerializeObject(newData));
Log.Trace("Elapsed Fast Timer reload");
}
});
+2 -2
View File
@@ -505,7 +505,7 @@ namespace MP.Data.Services
result = new List<ConfigModel>();
}
sw.Stop();
Log.Debug($"ConfigGetAll | {source} | {sw.Elapsed.TotalMilliseconds}ms");
Log.Debug($"ConfigGetAllAsync | {source} | {sw.Elapsed.TotalMilliseconds}ms");
return result;
}
@@ -1485,7 +1485,7 @@ namespace MP.Data.Services
}
sw.Stop();
string callName = $"MacchineByMatrOper.{source}";
string callName = $"MacchineByMatrOperAsync.{source}";
int numRec = esCollect.RecordCall(callName, sw.Elapsed.TotalMilliseconds);
if (numRec >= nRecLog)
{
+1 -1
View File
@@ -83,7 +83,7 @@ namespace MP.Data.Services
result = new List<ConfigModel>();
}
sw.Stop();
Log.Debug($"ConfigGetAll | {source} | {sw.Elapsed.TotalMilliseconds}ms");
Log.Debug($"ConfigGetAllAsync | {source} | {sw.Elapsed.TotalMilliseconds}ms");
return result;
}