|
|
@ -19,6 +19,8 @@ using NzbDrone.Common.Serializer;
|
|
|
|
using NzbDrone.Core.Configuration;
|
|
|
|
using NzbDrone.Core.Configuration;
|
|
|
|
using NzbDrone.Core.Datastore;
|
|
|
|
using NzbDrone.Core.Datastore;
|
|
|
|
using NzbDrone.Core.Instrumentation;
|
|
|
|
using NzbDrone.Core.Instrumentation;
|
|
|
|
|
|
|
|
using NzbDrone.Core.Lifecycle;
|
|
|
|
|
|
|
|
using NzbDrone.Core.Messaging.Events;
|
|
|
|
using NzbDrone.Host.AccessControl;
|
|
|
|
using NzbDrone.Host.AccessControl;
|
|
|
|
using NzbDrone.Http.Authentication;
|
|
|
|
using NzbDrone.Http.Authentication;
|
|
|
|
using NzbDrone.SignalR;
|
|
|
|
using NzbDrone.SignalR;
|
|
|
@ -215,6 +217,7 @@ namespace NzbDrone.Host
|
|
|
|
IConfigFileProvider configFileProvider,
|
|
|
|
IConfigFileProvider configFileProvider,
|
|
|
|
IRuntimeInfo runtimeInfo,
|
|
|
|
IRuntimeInfo runtimeInfo,
|
|
|
|
IFirewallAdapter firewallAdapter,
|
|
|
|
IFirewallAdapter firewallAdapter,
|
|
|
|
|
|
|
|
IEventAggregator eventAggregator,
|
|
|
|
ProwlarrErrorPipeline errorHandler)
|
|
|
|
ProwlarrErrorPipeline errorHandler)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
initializeLogger.Initialize();
|
|
|
|
initializeLogger.Initialize();
|
|
|
@ -236,6 +239,8 @@ namespace NzbDrone.Host
|
|
|
|
Console.CancelKeyPress += (sender, eventArgs) => NLog.LogManager.Configuration = null;
|
|
|
|
Console.CancelKeyPress += (sender, eventArgs) => NLog.LogManager.Configuration = null;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
eventAggregator.PublishEvent(new ApplicationStartingEvent());
|
|
|
|
|
|
|
|
|
|
|
|
if (OsInfo.IsWindows && runtimeInfo.IsAdmin)
|
|
|
|
if (OsInfo.IsWindows && runtimeInfo.IsAdmin)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
firewallAdapter.MakeAccessible();
|
|
|
|
firewallAdapter.MakeAccessible();
|
|
|
|