mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-18 06:53:07 +03:00
31 lines
726 B
C#
31 lines
726 B
C#
|
|
using System.ServiceProcess;
|
|||
|
|
|
|||
|
|
namespace MediaBrowser.ServerApplication
|
|||
|
|
{
|
|||
|
|
public class BackgroundService : ServiceBase
|
|||
|
|
{
|
|||
|
|
public BackgroundService()
|
|||
|
|
{
|
|||
|
|
CanPauseAndContinue = false;
|
|||
|
|
CanHandleSessionChangeEvent = true;
|
|||
|
|
CanStop = false;
|
|||
|
|
CanShutdown = true;
|
|||
|
|
ServiceName = "Media Browser";
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
protected override void OnSessionChange(SessionChangeDescription changeDescription)
|
|||
|
|
{
|
|||
|
|
base.OnSessionChange(changeDescription);
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
protected override void OnStart(string[] args)
|
|||
|
|
{
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
protected override void OnShutdown()
|
|||
|
|
{
|
|||
|
|
base.OnShutdown();
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|