move the scheduler to a windows service

This commit is contained in:
vfedosevich 2013-04-30 10:47:34 +03:00
parent 97f09a5683
commit 5e414136b2
115 changed files with 587 additions and 166 deletions

View file

@ -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
}
}