move the scheduler to a windows service
This commit is contained in:
parent
97f09a5683
commit
5e414136b2
115 changed files with 587 additions and 166 deletions
|
@ -0,0 +1,47 @@
|
|||
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;
|
||||
|
||||
namespace WebsitePanel.SchedulerService
|
||||
{
|
||||
public partial class SchedulerService : ServiceBase
|
||||
{
|
||||
#region Properties
|
||||
|
||||
public Timer _Timer { get; protected set; }
|
||||
|
||||
#endregion
|
||||
|
||||
#region Construcor
|
||||
|
||||
public SchedulerService()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region Methods
|
||||
|
||||
protected override void OnStart(string[] args)
|
||||
{
|
||||
}
|
||||
|
||||
protected override void OnStop()
|
||||
{
|
||||
_Timer.Dispose();
|
||||
}
|
||||
|
||||
protected void Porcess(object state)
|
||||
{
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue