Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inject tenant id into HTTP handlers or message handlers #1097

Open
DurinMusicspear opened this issue Oct 24, 2024 · 0 comments
Open

Inject tenant id into HTTP handlers or message handlers #1097

DurinMusicspear opened this issue Oct 24, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@DurinMusicspear
Copy link

Is your feature request related to a problem? Please describe.
We work with non-Wolverine services and have to get/set tenant ID explicitly in many cases.

Describe the solution you'd like
It would be helpful if we could just inject string tenantId or have a special type TenantId that could be injected into HTTP and message handlers.

Describe alternatives you've considered
Getting tenantId from Envelope is fine for message handler, and using IQuerySession in HTTP handlers works. But its creates extra dependencies that we need to create or mock in the unit tests.

@DurinMusicspear DurinMusicspear changed the title Inject tenant id into HTTP handlers or message handler Inject tenant id into HTTP handlers or message handlers Oct 24, 2024
@jeremydmiller jeremydmiller added the enhancement New feature or request label Oct 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants