Update log x IOB_INFO

This commit is contained in:
Samuele Locatelli
2024-02-27 16:07:44 +01:00
parent bc27286a54
commit e568c91dd7
2 changed files with 13 additions and 5 deletions
+12 -4
View File
@@ -1,5 +1,4 @@
using Microsoft.AspNetCore.Components;
using MP.Data.DTO;
using MP.Data.Objects;
using MP.Data.Services;
@@ -7,20 +6,29 @@ namespace MP_TAB3.Components
{
public partial class IobInfoMan
{
#region Public Properties
[Parameter]
public string idxMacch { get; set; } = "";
#endregion Public Properties
#region Protected Properties
protected IOB_data infosIob { get; set; } = new IOB_data();
[Inject]
protected TabDataService TabSrv { get; set; } = null!;
protected IOB_data infosIob { get; set; } = new IOB_data();
#endregion Protected Properties
#region Protected Methods
protected override async Task OnParametersSetAsync()
{
infosIob = await TabSrv.IobInfo(idxMacch);
}
#endregion Protected Methods
}
}
+1 -1
View File
@@ -903,7 +903,7 @@ namespace MP.Data.Services
result = new IOB_data();
}
sw.Stop();
Log.Debug($"IobInfo | {source} | {sw.Elapsed.TotalMilliseconds}ms");
Log.Debug($"IobInfo per {IdxMacchina} | {source} | {sw.Elapsed.TotalMilliseconds}ms");
return result;
}