starting point towards running as a service

This commit is contained in:
Luke Pulverenti
2013-09-20 13:32:10 -04:00
parent e50c29ffca
commit f3ce127a62
13 changed files with 285 additions and 163 deletions

View File

@@ -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();
}
}
}