aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.ServerApplication/BackgroundService.cs
diff options
context:
space:
mode:
authorstefan <stefan@hegedues.at>2018-09-12 19:26:21 +0200
committerstefan <stefan@hegedues.at>2018-09-12 19:26:21 +0200
commit48facb797ed912e4ea6b04b17d1ff190ac2daac4 (patch)
tree8dae77a31670a888d733484cb17dd4077d5444e8 /MediaBrowser.ServerApplication/BackgroundService.cs
parentc32d8656382a0eacb301692e0084377fc433ae9b (diff)
Update to 3.5.2 and .net core 2.1
Diffstat (limited to 'MediaBrowser.ServerApplication/BackgroundService.cs')
-rw-r--r--MediaBrowser.ServerApplication/BackgroundService.cs45
1 files changed, 0 insertions, 45 deletions
diff --git a/MediaBrowser.ServerApplication/BackgroundService.cs b/MediaBrowser.ServerApplication/BackgroundService.cs
deleted file mode 100644
index e90251ae6..000000000
--- a/MediaBrowser.ServerApplication/BackgroundService.cs
+++ /dev/null
@@ -1,45 +0,0 @@
-using MediaBrowser.Model.Logging;
-using System.ServiceProcess;
-
-namespace MediaBrowser.ServerApplication
-{
- /// <summary>
- /// Class BackgroundService
- /// </summary>
- public class BackgroundService : ServiceBase
- {
- public static string Name = "Emby";
- public static string DisplayName = "Emby Server";
-
- public static string GetExistingServiceName()
- {
- return Name;
- }
-
- private readonly ILogger _logger;
-
- /// <summary>
- /// Initializes a new instance of the <see cref="BackgroundService"/> class.
- /// </summary>
- public BackgroundService(ILogger logger)
- {
- _logger = logger;
-
- CanPauseAndContinue = false;
-
- CanStop = true;
-
- ServiceName = GetExistingServiceName();
- }
-
- /// <summary>
- /// When implemented in a derived class, executes when a Stop command is sent to the service by the Service Control Manager (SCM). Specifies actions to take when a service stops running.
- /// </summary>
- protected override void OnStop()
- {
- _logger.Info("Stop command received");
-
- base.OnStop();
- }
- }
-}