Files
mapo-core/MP.Stats/Pages/ForceReset.razor.cs
T
Samuele Locatelli 2346c67f3a Review AppUrl base x siti CORE
Divisione aree Redis tra app (x TaskMan in particolare)
 Test apertura app
2024-10-28 16:57:52 +01:00

36 lines
845 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
}
}