46 lines
1.1 KiB
C#
46 lines
1.1 KiB
C#
using Microsoft.AspNetCore.Components;
|
|
using Microsoft.JSInterop;
|
|
using MP.Stats.Data;
|
|
using System.Collections.Generic;
|
|
using System.IO;
|
|
using System.Threading.Tasks;
|
|
using System;
|
|
using System.Linq;
|
|
using StackExchange.Redis;
|
|
using MP.Data.DbModels;
|
|
using Microsoft.AspNetCore.DataProtection;
|
|
using MP.TaskMan.Models;
|
|
using static MP.TaskMan.Objects.Enums;
|
|
using Microsoft.Extensions.Configuration;
|
|
|
|
namespace MP.Stats.Pages
|
|
{
|
|
public partial class TaskScheduler : ComponentBase
|
|
{
|
|
#region Protected Properties
|
|
|
|
protected int minOrdinal { get; set; } = 0;
|
|
|
|
[Inject]
|
|
protected MessageService MServ { get; set; } = null!;
|
|
|
|
[Inject]
|
|
protected IConfiguration ConfMan { get; set; }
|
|
|
|
#endregion Protected Properties
|
|
|
|
#region Protected Methods
|
|
|
|
protected override void OnInitialized()
|
|
{
|
|
MServ.ShowSearch = true;
|
|
MServ.PageName = "Task Scheduler";
|
|
MServ.PageIcon = "oi oi-clock";
|
|
EnableRedis = ConfMan.GetValue<bool>("ServerConf:TaskEnableRedis");
|
|
}
|
|
|
|
private bool EnableRedis = true;
|
|
|
|
#endregion Protected Methods
|
|
}
|
|
} |