X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;ds=inline;f=o2app%2Fbootstrap.py;h=6c5b276371dd1192b739a334494cce81967b9b15;hb=refs%2Fheads%2Fe-release;hp=2e907686cccba7825de52fb3edd612aaada9dc28;hpb=84867b76a65efc4e9add52c86eae7e451c4a038d;p=pti%2Fo2.git diff --git a/o2app/bootstrap.py b/o2app/bootstrap.py index 2e90768..6c5b276 100644 --- a/o2app/bootstrap.py +++ b/o2app/bootstrap.py @@ -72,11 +72,13 @@ def bootstrap( for command_type, handler in handlers.COMMAND_HANDLERS.items() } - return messagebus.MessageBus( + bus = messagebus.MessageBus( uow=uow, event_handlers=injected_event_handlers, command_handlers=injected_command_handlers, ) + messagebus.MessageBus.set_instance(bus) + return bus def inject_dependencies(handler, dependencies):