23-12-2022
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
using DigitalData.Modules.Logging;
|
||||
using DigitalData.Modules.Filesystem;
|
||||
using ECM.JobRunner.Common.JobRunnerReference;
|
||||
using System;
|
||||
|
||||
@@ -8,14 +9,21 @@ namespace ECM.JobRunner.Web.Data
|
||||
{
|
||||
private readonly Logger logger;
|
||||
private readonly IEDMIServiceChannel channel;
|
||||
private readonly DigitalData.Modules.Filesystem.File fileEx;
|
||||
|
||||
public event EventHandler<string>? PageTitleChanged;
|
||||
|
||||
public HelperService(LoggingService Logging, WcfService Wcf)
|
||||
{
|
||||
logger = Logging.LogConfig.GetLogger();
|
||||
fileEx = new DigitalData.Modules.Filesystem.File(Logging.LogConfig);
|
||||
channel = Wcf.Channel;
|
||||
}
|
||||
|
||||
public string GetDateDirectory(DateTime date)
|
||||
{
|
||||
return fileEx.GetDateString(date);
|
||||
}
|
||||
|
||||
public void SetPageTitle(string title)
|
||||
{
|
||||
@@ -61,8 +69,6 @@ namespace ECM.JobRunner.Web.Data
|
||||
waiting = executingItems.Where(i => i.Successful && i.Waiting == true).Count()
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
public DateTime GetNextExecutionTime(string pCronExpression)
|
||||
{
|
||||
Quartz.CronExpression expression = new(pCronExpression);
|
||||
|
||||
Reference in New Issue
Block a user