aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.ServerApplication/BackgroundService.cs
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2013-09-20 13:32:10 -0400
committerLuke Pulverenti <luke.pulverenti@gmail.com>2013-09-20 13:32:10 -0400
commitf3ce127a62714c97747f1e9575aaea1e9cdb3b6a (patch)
treed138a473d31b69e8ba59020b0dc1da3c51c2833e /MediaBrowser.ServerApplication/BackgroundService.cs
parente50c29ffca5c4a5865d8b0bf34c2f655387f1d3e (diff)
starting point towards running as a service
Diffstat (limited to 'MediaBrowser.ServerApplication/BackgroundService.cs')
-rw-r--r--MediaBrowser.ServerApplication/BackgroundService.cs30
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();
+ }
+ }
+}