|
|
@ -26,6 +26,7 @@ namespace Radarr.Host
|
|
|
|
private readonly IBrowserService _browserService;
|
|
|
|
private readonly IBrowserService _browserService;
|
|
|
|
private readonly IContainer _container;
|
|
|
|
private readonly IContainer _container;
|
|
|
|
private readonly Logger _logger;
|
|
|
|
private readonly Logger _logger;
|
|
|
|
|
|
|
|
private CancelHandler _cancelHandler;
|
|
|
|
|
|
|
|
|
|
|
|
public NzbDroneServiceFactory(IConfigFileProvider configFileProvider,
|
|
|
|
public NzbDroneServiceFactory(IConfigFileProvider configFileProvider,
|
|
|
|
IHostController hostController,
|
|
|
|
IHostController hostController,
|
|
|
@ -53,7 +54,8 @@ namespace Radarr.Host
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if (OsInfo.IsNotWindows)
|
|
|
|
if (OsInfo.IsNotWindows)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
Console.CancelKeyPress += (sender, eventArgs) => LogManager.Configuration = null;
|
|
|
|
//Console.CancelKeyPress += (sender, eventArgs) => eventArgs.Cancel = true;
|
|
|
|
|
|
|
|
//_cancelHandler = new CancelHandler();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
_runtimeInfo.IsRunning = true;
|
|
|
|
_runtimeInfo.IsRunning = true;
|
|
|
@ -66,6 +68,7 @@ namespace Radarr.Host
|
|
|
|
_browserService.LaunchWebUI();
|
|
|
|
_browserService.LaunchWebUI();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
_container.Resolve<IEventAggregator>().PublishEvent(new ApplicationStartedEvent());
|
|
|
|
_container.Resolve<IEventAggregator>().PublishEvent(new ApplicationStartedEvent());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|