You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
I am trying to pass metadata (e.g., userId, etc.) alongside messages in message headers. When using SendAsync or PublishAsync, I can easily pass options as method param. However, InvokeAsync does not allow this.
I've tried passing options using the WithDeliveryOptions method. The problem is that routing then does not find handlers that do not request a wrapped message (DeliveryMessage<T>).
Describe the solution you'd like
It would be helpful if InvokeAsync could accept options in the same way that SendAsync does.
Or is there any other approach that would solve my problem?
Describe alternatives you've considered
Currently, I pass the user ID using a field intended for tenancy.
Additional context
The metadata I need is processed by middleware and is not required in the handlers.
The text was updated successfully, but these errors were encountered:
@MichalTichy This is going to be tedious. I think I'd like to push this off until Wolverine 4 so we can make a breaking API change to add DeliveryOptions as an optional parameter to InvokeAsync() instead of having to create umpteen overloads
Is your feature request related to a problem? Please describe.
I am trying to pass metadata (e.g.,
userId
, etc.) alongside messages in message headers. When usingSendAsync
orPublishAsync
, I can easily pass options as method param. However,InvokeAsync
does not allow this.I've tried passing options using the
WithDeliveryOptions
method. The problem is that routing then does not find handlers that do not request a wrapped message (DeliveryMessage<T>
).Describe the solution you'd like
It would be helpful if
InvokeAsync
could accept options in the same way thatSendAsync
does.Or is there any other approach that would solve my problem?
Describe alternatives you've considered
Currently, I pass the user ID using a field intended for tenancy.
Additional context
The metadata I need is processed by middleware and is not required in the handlers.
The text was updated successfully, but these errors were encountered: