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.
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.