diff options
Diffstat (limited to 'MediaBrowser.ServerApplication/BackgroundService.cs')
| -rw-r--r-- | MediaBrowser.ServerApplication/BackgroundService.cs | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/MediaBrowser.ServerApplication/BackgroundService.cs b/MediaBrowser.ServerApplication/BackgroundService.cs new file mode 100644 index 000000000..a8a9a5b50 --- /dev/null +++ b/MediaBrowser.ServerApplication/BackgroundService.cs @@ -0,0 +1,30 @@ +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(); + } + } +} |
