rebus-org / Rebus.ServiceProvider

:bus: Microsoft Extensions Dependency Injection container adapter for Rebus
https://mookid.dk/category/rebus
Other
66 stars 32 forks source link

Moved "lazy boy" initialization code to RebusInitializer class #63

Closed AYss closed 2 years ago

AYss commented 2 years ago

Moved "lazy boy" initialization code to RebusInitializer class, so it can be called and bus started when IBus instance is first resolved. This way the bus instance can be injected into another IHostedService or used in Startup's Configure method.

Closes #61


Rebus is MIT-licensed. The code submitted in this pull request needs to carry the MIT license too. By leaving this text in, I hereby acknowledge that the code submitted in the pull request has the MIT license and can be merged with the Rebus codebase.

CLAassistant commented 2 years ago

CLA assistant check
All committers have signed the CLA.

mookid8000 commented 2 years ago

Excellent work! It's out as Rebus.ServiceProvider 8.0.0-b06 on NuGet.org now 🙂