34 lines
750 B
Plaintext
34 lines
750 B
Plaintext
@page "/RefreshData"
|
|
|
|
@using MP.AppAuth.Services
|
|
@using MP.Land.Components
|
|
@using MP.Land.Data
|
|
@using MP.TaskMan.Services
|
|
|
|
@inject AppAuthService DataService
|
|
@inject LicenseService LicServ
|
|
@inject TaskService TServ
|
|
@inject NavigationManager NavManager
|
|
|
|
<div class="card">
|
|
<div class="card-body">
|
|
<LoadingData></LoadingData>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
@code {
|
|
protected override async Task OnInitializedAsync()
|
|
{
|
|
await Task.Delay(100);
|
|
LicServ.AKVList = new List<AppAuth.Models.AnagKeyValueModel>();
|
|
await Task.Delay(100);
|
|
await DataService.FlushRedisCache();
|
|
await TServ.FlushCacheAsync();
|
|
await Task.Delay(200);
|
|
|
|
// redireziono
|
|
NavManager.NavigateTo("", true);
|
|
}
|
|
}
|