|
@@ -6,6 +6,8 @@ using System.Windows.Threading; |
|
|
using System.Windows; |
|
|
using System.Windows; |
|
|
using Microsoft.Extensions.Configuration; |
|
|
using Microsoft.Extensions.Configuration; |
|
|
using HKCardOUT.Helper; |
|
|
using HKCardOUT.Helper; |
|
|
|
|
|
using HKCardOUT.QuartzUtil.Job; |
|
|
|
|
|
using HKCardOUT.QuartzUtil; |
|
|
|
|
|
|
|
|
namespace HKCardOUT |
|
|
namespace HKCardOUT |
|
|
{ |
|
|
{ |
|
@@ -30,6 +32,8 @@ namespace HKCardOUT |
|
|
{ |
|
|
{ |
|
|
var configer = (new ConfigurationBuilder()).AddJsonFile("options.json").Build(); |
|
|
var configer = (new ConfigurationBuilder()).AddJsonFile("options.json").Build(); |
|
|
DataBus.ConnectionString = configer.GetConnectionString("Sqlite"); |
|
|
DataBus.ConnectionString = configer.GetConnectionString("Sqlite"); |
|
|
|
|
|
DataBus.Cron = configer["Cron"]; |
|
|
|
|
|
DataBus.SaasRoute = configer["SaasRoute"]; |
|
|
base.Configure(); |
|
|
base.Configure(); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
@@ -55,6 +59,13 @@ namespace HKCardOUT |
|
|
/// </summary> |
|
|
/// </summary> |
|
|
protected override void OnLaunch() |
|
|
protected override void OnLaunch() |
|
|
{ |
|
|
{ |
|
|
|
|
|
QuartzCoreFactory.QuartzCore().AddJob<QuartzJob>(new QuartzMap |
|
|
|
|
|
{ |
|
|
|
|
|
JobDetail = "定时推送订单", |
|
|
|
|
|
Cron = DataBus.Cron, |
|
|
|
|
|
JobName = "订单", |
|
|
|
|
|
JobGroup = "订单" |
|
|
|
|
|
}); |
|
|
base.OnLaunch(); |
|
|
base.OnLaunch(); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|