PublishEvent after StartupContext to try fix integration tests

This commit is contained in:
Qstick 2021-07-04 02:25:09 -04:00
parent d5a74e7064
commit d3f9474eab

View file

@ -130,9 +130,8 @@ public static IHostBuilder CreateConsoleHostBuilder(string[] args, StartupContex
c.AutoAddServices(Bootstrap.ASSEMBLIES)
.AddNzbDroneLogger()
.AddDatabase()
.AddStartupContext(context)
.Resolve<IEventAggregator>().PublishEvent(new ApplicationStartingEvent());
c.AddStartupContext(context);
})
.ConfigureWebHost(builder =>
{