Fixed: Raise ApplicationStartupEvent after Owin is running.
This commit is contained in:
parent
090dd45541
commit
f53cad822a
|
@ -34,7 +34,6 @@ namespace NzbDrone.Api
|
||||||
RegisterPipelines(pipelines);
|
RegisterPipelines(pipelines);
|
||||||
|
|
||||||
container.Resolve<DatabaseTarget>().Register();
|
container.Resolve<DatabaseTarget>().Register();
|
||||||
container.Resolve<IEventAggregator>().PublishEvent(new ApplicationStartedEvent());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void RegisterPipelines(IPipelines pipelines)
|
private void RegisterPipelines(IPipelines pipelines)
|
||||||
|
@ -56,4 +55,4 @@ namespace NzbDrone.Api
|
||||||
|
|
||||||
protected override byte[] FavIcon => null;
|
protected override byte[] FavIcon => null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -65,6 +65,8 @@ namespace NzbDrone.Host
|
||||||
{
|
{
|
||||||
_browserService.LaunchWebUI();
|
_browserService.LaunchWebUI();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
_container.Resolve<IEventAggregator>().PublishEvent(new ApplicationStartedEvent());
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override void OnStop()
|
protected override void OnStop()
|
||||||
|
|
Loading…
Reference in New Issue