Add keyed registration and resolvation of handlers #98
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The proposal of changes for basic keyed services support.
What bothers me is that it somewhat overlaps with
IBusRegistry
but since keyed services are supported only if .NET >= 8 there is no way out of this I guess.Feel free to close this PR if you think it doesn't make sense at all :)
What it does for me, is that it allows to use solution 1) from rebus-org/Rebus#1194 with Rebus.ServiceProvider. But it was just an experiment, I don't use it.
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.