695f6e9152
- fix call esecuzione stored RAW STATS - fix pagina ForceReset che non si chiude correttamente
36 lines
844 B
C#
36 lines
844 B
C#
using Microsoft.AspNetCore.Components;
|
|
using MP.Data.Services;
|
|
using MP.Stats.Data;
|
|
using MP.TaskMan.Services;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace MP.Stats.Pages
|
|
{
|
|
public partial class ForceReset
|
|
{
|
|
#region Protected Properties
|
|
|
|
[Inject]
|
|
protected NavigationManager NavManager { get; set; }
|
|
|
|
[Inject]
|
|
protected MpStatsService StatService { get; set; }
|
|
|
|
[Inject]
|
|
protected TaskService TServ { get; set; } = null!;
|
|
|
|
#endregion Protected Properties
|
|
|
|
#region Protected Methods
|
|
|
|
protected override async Task OnInitializedAsync()
|
|
{
|
|
await StatService.FlushCache();
|
|
await TServ.FlushCache();
|
|
await Task.Delay(500);
|
|
NavManager.NavigateTo("", true);
|
|
}
|
|
|
|
#endregion Protected Methods
|
|
}
|
|
} |