Fixed: Raise ApplicationStartupEvent after Owin is running

This commit is contained in:
Qstick 2017-11-16 12:00:49 -05:00
parent b25c772d52
commit 4faefebe7e
2 changed files with 2 additions and 1 deletions

View File

@ -34,7 +34,6 @@ namespace Lidarr.Http
RegisterPipelines(pipelines);
container.Resolve<DatabaseTarget>().Register();
container.Resolve<IEventAggregator>().PublishEvent(new ApplicationStartedEvent());
}
private void RegisterPipelines(IPipelines pipelines)

View File

@ -65,6 +65,8 @@ namespace NzbDrone.Host
{
_browserService.LaunchWebUI();
}
_container.Resolve<IEventAggregator>().PublishEvent(new ApplicationStartedEvent());
}
protected override void OnStop()