26 lines
739 B
Plaintext
26 lines
739 B
Plaintext
@page "/ResetCache"
|
|
@using EgwCoreLib.Lux.Data.Services.General
|
|
|
|
<LoadingData Title="Resetting Cache..." DisplaySize="LoadingData.CtrlSize.Large" DisplayMode="LoadingData.SpinMode.BounceLine"></LoadingData>
|
|
|
|
@code {
|
|
|
|
[Inject]
|
|
private IDataLayerServices DLService { get; set; } = null!;
|
|
|
|
[Inject]
|
|
private NavigationManager NavMan { get; set; } = null!;
|
|
|
|
[Inject]
|
|
protected IConfiguration Config { get; set; } = null!;
|
|
|
|
protected override async Task OnInitializedAsync()
|
|
{
|
|
string baseUrl = Config.GetValue<string>("ServerConf:BaseUrl") ?? "";
|
|
await Task.Delay(100);
|
|
await DLService.FlushCacheAsync();
|
|
await Task.Delay(100);
|
|
NavMan.NavigateTo(baseUrl, true);
|
|
}
|
|
}
|