Scheduler moved into windows service.
This commit is contained in:
parent
5e414136b2
commit
ce95326f7d
15 changed files with 219 additions and 86 deletions
|
@ -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
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue