rebus-org / Rebus.ServiceProvider

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

Allow types to be forwarded from host container #66

Closed sbyse closed 1 year ago

sbyse commented 1 year ago

Currently AddRebusService hard codes IHostApplicationLifetime and ILoggerFactory to be forwarded. This PR generalises this to allow us to pass in a (short) list of additional types to be forwarded. It is recommended that only Singleton and Transient types are forwarded using this mechanism.


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 1 year ago

CLA assistant check
All committers have signed the CLA.

mookid8000 commented 1 year ago

Sorry for the slow reaction here, vacation time 😎

It's out as Rebus.ServiceProvider 8.1.0 on NuGet.org now!

Thanks for contributing 🙂