34 lines
886 B
C#
34 lines
886 B
C#
using Microsoft.AspNetCore.Components;
|
|
using WebDoorCreator.Data.Services;
|
|
using WebDoorCreator.UI.Data;
|
|
|
|
namespace WebDoorCreator.UI.Pages
|
|
{
|
|
public partial class ForceReload
|
|
{
|
|
#region Protected Properties
|
|
|
|
[Inject]
|
|
protected NavigationManager NavManager { get; set; } = null!;
|
|
|
|
[Inject]
|
|
protected WDCVocabularyService WDCVService { get; set; } = null!;
|
|
|
|
[Inject]
|
|
protected WebDoorCreatorService WDService { get; set; } = null!;
|
|
|
|
#endregion Protected Properties
|
|
|
|
#region Protected Methods
|
|
|
|
protected override async Task OnInitializedAsync()
|
|
{
|
|
await WDService.FlushCustomPattern("Cache");
|
|
await Task.Delay(1);
|
|
await WDCVService.ReloadVoc();
|
|
NavManager.NavigateTo("OrdersHomePage", true);
|
|
}
|
|
|
|
#endregion Protected Methods
|
|
}
|
|
} |