Scheduler moved into windows service.

This commit is contained in:
vfedosevich 2013-05-03 17:29:25 +03:00
parent 5e414136b2
commit ce95326f7d
15 changed files with 219 additions and 86 deletions

View file

@ -0,0 +1,28 @@
using System.ComponentModel;
using System.Configuration.Install;
using System.ServiceProcess;
namespace WebsitePanel.SchedulerService
{
[RunInstaller(true)]
public class SchedulerServiceInstaller : Installer
{
#region Constructor
public SchedulerServiceInstaller()
{
var processInstaller = new ServiceProcessInstaller();
var serviceInstaller = new ServiceInstaller();
processInstaller.Account = ServiceAccount.LocalSystem;
serviceInstaller.DisplayName = "WebsitePanel Scheduler";
serviceInstaller.StartType = ServiceStartMode.Automatic;
serviceInstaller.ServiceName = "WebsitePanlel Scheduler";
Installers.Add(processInstaller);
Installers.Add(serviceInstaller);
}
#endregion
}
}