mirror of
https://github.com/Lidarr/Lidarr
synced 2026-02-03 05:14:39 +01:00
Publish ApplicationStartingEvent during startup
Fixes #3102 (cherry picked from commit 5400bce1295bdc4198d2cfe0b9258bbb7ccf0852)
This commit is contained in:
parent
58a697f81a
commit
52fc5ae1ea
1 changed files with 7 additions and 1 deletions
|
|
@ -25,6 +25,9 @@
|
|||
using NzbDrone.Core.Configuration;
|
||||
using NzbDrone.Core.Datastore;
|
||||
using NzbDrone.Core.Instrumentation;
|
||||
using NzbDrone.Core.Lifecycle;
|
||||
using NzbDrone.Core.Messaging.Events;
|
||||
using NzbDrone.Host;
|
||||
using NzbDrone.Host.AccessControl;
|
||||
using NzbDrone.Http.Authentication;
|
||||
using NzbDrone.SignalR;
|
||||
|
|
@ -215,7 +218,8 @@ public void Configure(IApplicationBuilder app,
|
|||
IConfigFileProvider configFileProvider,
|
||||
IRuntimeInfo runtimeInfo,
|
||||
IFirewallAdapter firewallAdapter,
|
||||
LidarrErrorPipeline errorHandler)
|
||||
LidarrErrorPipeline errorHandler,
|
||||
IEventAggregator eventAggregator)
|
||||
{
|
||||
initializeLogger.Initialize();
|
||||
appFolderFactory.Register();
|
||||
|
|
@ -236,6 +240,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();
|
||||
|
|
|
|||
Loading…
Reference in a new issue