Scheduler moved into windows service.
This commit is contained in:
parent
5e414136b2
commit
ce95326f7d
15 changed files with 219 additions and 86 deletions
|
@ -1,23 +1,10 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
using System.Diagnostics;
|
||||
using System.Linq;
|
||||
using System.ServiceProcess;
|
||||
using System.Text;
|
||||
using System.Timers;
|
||||
using System.ServiceProcess;
|
||||
using WebsitePanel.EnterpriseServer;
|
||||
|
||||
namespace WebsitePanel.SchedulerService
|
||||
{
|
||||
public partial class SchedulerService : ServiceBase
|
||||
{
|
||||
#region Properties
|
||||
|
||||
public Timer _Timer { get; protected set; }
|
||||
|
||||
#endregion
|
||||
|
||||
#region Construcor
|
||||
|
||||
public SchedulerService()
|
||||
|
@ -31,17 +18,9 @@ namespace WebsitePanel.SchedulerService
|
|||
|
||||
protected override void OnStart(string[] args)
|
||||
{
|
||||
}
|
||||
|
||||
protected override void OnStop()
|
||||
{
|
||||
_Timer.Dispose();
|
||||
}
|
||||
|
||||
protected void Porcess(object state)
|
||||
{
|
||||
Scheduler.Start();
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue