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