1
0
Fork 0
mirror of https://github.com/Sonarr/Sonarr synced 2024-12-26 09:47:39 +00:00
Sonarr/NzbDrone/NzbDroneService.cs

18 lines
405 B
C#
Raw Normal View History

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