2011-10-07 06:57:43 +00:00
|
|
|
|
using System.ServiceProcess;
|
2011-10-11 07:11:05 +00:00
|
|
|
|
using Ninject;
|
2011-10-07 01:30:44 +00:00
|
|
|
|
|
|
|
|
|
namespace NzbDrone
|
|
|
|
|
{
|
2011-10-07 06:57:43 +00:00
|
|
|
|
internal class NzbDroneService : ServiceBase
|
2011-10-07 01:30:44 +00:00
|
|
|
|
{
|
|
|
|
|
protected override void OnStart(string[] args)
|
|
|
|
|
{
|
2011-10-11 07:11:05 +00:00
|
|
|
|
CentralDispatch.Kernel.Get<ApplicationServer>().Start();
|
2011-10-07 01:30:44 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
protected override void OnStop()
|
|
|
|
|
{
|
2011-10-11 07:11:05 +00:00
|
|
|
|
CentralDispatch.Kernel.Get<ApplicationServer>().Stop();
|
|
|
|
|
}
|
2011-10-07 01:30:44 +00:00
|
|
|
|
}
|
2011-10-07 06:57:43 +00:00
|
|
|
|
}
|