39 lines
941 B
C#
39 lines
941 B
C#
using Microsoft.AspNetCore.Components;
|
|
using Microsoft.Extensions.Configuration;
|
|
using MP.Stats.Data;
|
|
|
|
namespace MP.Stats.Pages
|
|
{
|
|
public partial class TaskScheduler : ComponentBase
|
|
{
|
|
#region Protected Properties
|
|
|
|
[Inject]
|
|
protected IConfiguration ConfMan { get; set; }
|
|
|
|
protected int minOrdinal { get; set; } = 0;
|
|
|
|
[Inject]
|
|
protected MessageService MServ { get; set; } = null!;
|
|
|
|
#endregion Protected Properties
|
|
|
|
#region Protected Methods
|
|
|
|
protected override void OnInitialized()
|
|
{
|
|
MServ.ShowSearch = true;
|
|
MServ.PageName = "Task Scheduler";
|
|
MServ.PageIcon = "fa fa-clock";
|
|
EnableRedis = ConfMan.GetValue<bool>("ServerConf:TaskEnableRedis");
|
|
}
|
|
|
|
#endregion Protected Methods
|
|
|
|
#region Private Fields
|
|
|
|
private bool EnableRedis = true;
|
|
|
|
#endregion Private Fields
|
|
}
|
|
} |