02c91a2508
- Aggiunta pagina ForceReset - completato porting cache redis standard
21 lines
557 B
C#
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; }
|
|
}
|
|
} |