mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-14 02:37:08 -07:00
Windows service is half working,
This commit is contained in:
parent
7549c26ffe
commit
6b7923bd52
12 changed files with 92 additions and 23 deletions
|
@ -2,13 +2,16 @@
|
|||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using NLog;
|
||||
using NzbDrone.Model;
|
||||
using NzbDrone.Providers;
|
||||
|
||||
namespace NzbDrone
|
||||
{
|
||||
class Router
|
||||
public class Router
|
||||
{
|
||||
private static readonly Logger Logger = LogManager.GetLogger("Host.Router");
|
||||
|
||||
private readonly ApplicationServer _applicationServer;
|
||||
private readonly ServiceProvider _serviceProvider;
|
||||
private readonly ConsoleProvider _consoleProvider;
|
||||
|
@ -17,13 +20,15 @@ namespace NzbDrone
|
|||
{
|
||||
_applicationServer = applicationServer;
|
||||
_serviceProvider = serviceProvider;
|
||||
_consoleProvider = consoleProvider;
|
||||
_consoleProvider = consoleProvider;
|
||||
}
|
||||
|
||||
public void Route()
|
||||
{
|
||||
Logger.Info("Application mode: {0}", CentralDispatch.ApplicationMode);
|
||||
switch (CentralDispatch.ApplicationMode)
|
||||
{
|
||||
|
||||
case ApplicationMode.Console:
|
||||
{
|
||||
_applicationServer.Start();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue