mirror of
https://github.com/Sonarr/Sonarr.git
synced 2024-12-14 11:23:42 +02:00
18 lines
405 B
C#
18 lines
405 B
C#
using System.ServiceProcess;
|
|
using Ninject;
|
|
|
|
namespace NzbDrone
|
|
{
|
|
internal class NzbDroneService : ServiceBase
|
|
{
|
|
protected override void OnStart(string[] args)
|
|
{
|
|
CentralDispatch.Kernel.Get<ApplicationServer>().Start();
|
|
}
|
|
|
|
protected override void OnStop()
|
|
{
|
|
CentralDispatch.Kernel.Get<ApplicationServer>().Stop();
|
|
}
|
|
}
|
|
} |