1
0
Fork 0
mirror of https://github.com/Radarr/Radarr synced 2024-12-21 23:42:23 +00:00

Publish ApplicationStartingEvent during startup

(cherry picked from commit 5400bce1295bdc4198d2cfe0b9258bbb7ccf0852)
This commit is contained in:
Mark McDowall 2022-11-20 19:09:29 -08:00 committed by Qstick
parent 5330815e1b
commit c7ee2c9166

View file

@ -19,6 +19,8 @@
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;
@ -215,6 +217,7 @@ public void Configure(IApplicationBuilder app,
IConfigFileProvider configFileProvider,
IRuntimeInfo runtimeInfo,
IFirewallAdapter firewallAdapter,
IEventAggregator eventAggregator,
RadarrErrorPipeline errorHandler)
{
initializeLogger.Initialize();
@ -236,6 +239,8 @@ public void Configure(IApplicationBuilder app,
Console.CancelKeyPress += (sender, eventArgs) => NLog.LogManager.Configuration = null;
}
eventAggregator.PublishEvent(new ApplicationStartingEvent());
if (OsInfo.IsWindows && runtimeInfo.IsAdmin)
{
firewallAdapter.MakeAccessible();