Register DependencyInjectionHandlerActivator as IHandlerActivator allowing it to be patched/mocked.
Context
We have a use case where we want to change the way handlers are registered and resolved somewhat, while keeping all other service container registrations as-is. By registering as IHandlerActivator we can replace/decorate the implementation of this service type after registering Rebus (with AddRebus())
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.
Register
DependencyInjectionHandlerActivator
asIHandlerActivator
allowing it to be patched/mocked.Context We have a use case where we want to change the way handlers are registered and resolved somewhat, while keeping all other service container registrations as-is. By registering as
IHandlerActivator
we can replace/decorate the implementation of this service type after registering Rebus (withAddRebus()
)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.