Files
mapo-core/MP.Stats/Pages/ForceReset.razor.cs
T
Samuele Locatelli 02c91a2508 STATS:
- Aggiunta pagina ForceReset
- completato porting cache redis standard
2024-04-03 09:45:16 +02:00

21 lines
557 B
C#

using Microsoft.AspNetCore.Components;
using MP.Data.Services;
using MP.Stats.Data;
using System.Threading.Tasks;
namespace MP.Stats.Pages
{
public partial class ForceReset
{
[Inject]
protected MpStatsService StatService { get; set; }
protected override async Task OnInitializedAsync()
{
await StatService.FlushCache();
await Task.Delay(500);
NavManager.NavigateTo("/", true);
}
[Inject]
protected NavigationManager NavManager { get; set; }
}
}