33 lines
862 B
C#
33 lines
862 B
C#
using Microsoft.AspNetCore.Components;
|
|
using MP.Data.Services;
|
|
|
|
namespace MP.MON.Components.Pages
|
|
{
|
|
public partial class ForceReload : ComponentBase
|
|
{
|
|
#region Protected Properties
|
|
|
|
[Inject]
|
|
protected MonDataFeeder MMDataService { get; set; } = null!;
|
|
|
|
[Inject]
|
|
protected NavigationManager NavMan { get; set; } = null!;
|
|
|
|
[Inject]
|
|
protected IConfiguration config { get; set; } = null!;
|
|
|
|
#endregion Protected Properties
|
|
|
|
#region Protected Methods
|
|
|
|
protected override async Task OnInitializedAsync()
|
|
{
|
|
await MMDataService.FlushCache();
|
|
await Task.Delay(100);
|
|
string baseUrl = config.GetValue<string>("ServerConf:BaseAppPath") ?? "";
|
|
NavMan.NavigateTo(baseUrl, true);
|
|
}
|
|
|
|
#endregion Protected Methods
|
|
}
|
|
} |