Files
mapo-core/MP.Prog/Pages/ForceReload.razor.cs
T
Samuele Locatelli ea2f942f94 PROG:
- Inizio modifiche
- porting bootstrap + fontawesome
- inizio editingdirectory
2024-10-21 11:32:50 +02:00

41 lines
914 B
C#

using Microsoft.AspNetCore.Components;
using MP.Prog.Data;
using System.Threading.Tasks;
namespace MP.Prog.Pages
{
public partial class ForceReload
{
#region Protected Properties
[Inject]
protected FileArchDataService FDService { get; set; }
[Inject]
protected NavigationManager NavManager { get; set; }
#endregion Protected Properties
#region Protected Methods
protected override async Task OnInitializedAsync()
{
await Task.Delay(10);
await FDService.FlushRedisCache();
message = "Reset done, now redirect!";
await Task.Delay(100);
// passo a pagina home
NavManager.NavigateTo("Home", true);
}
#endregion Protected Methods
#region Private Fields
private string message = "";
#endregion Private Fields
}
}