PublishEvent after StartupContext to try fix integration tests

pull/1108/head
Qstick 3 years ago
parent d5a74e7064
commit d3f9474eab

@ -130,9 +130,8 @@ namespace NzbDrone.Host
c.AutoAddServices(Bootstrap.ASSEMBLIES)
.AddNzbDroneLogger()
.AddDatabase()
.AddStartupContext(context)
.Resolve<IEventAggregator>().PublishEvent(new ApplicationStartingEvent());
c.AddStartupContext(context);
})
.ConfigureWebHost(builder =>
{

Loading…
Cancel
Save