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
When using callbacks it is not possible to access header data via the context on a response. Meaning that if an endpoint does something like the following the receiver of the response is unable to process this:
Client
var response =await endpoint.Request<MyResponse>(new MyRequest())// No access to header data
Server
Task Handle(MyRequestrequest,IMessageHandlerContextcontext){varreplyOptions=new ReplyOptions();var replyOptions.SetHeader("MyHeaderKey","All your base are belong to us!");return context.Reply(new MyResponse(), replyOptions);}
For this to work we would require an overload like any of the following or even a different signature:
varresponseEnvelope=await bus.RequestWithHeaders<MyResponse>(new MyRequest(), options)
var headerValue = responseEnvelope.Headers["MyHeaderKey"]
var message = responseEnvelope.Message;
When using callbacks it is not possible to access header data via the context on a response. Meaning that if an endpoint does something like the following the receiver of the response is unable to process this:
Client
Server
For this to work we would require an overload like any of the following or even a different signature:
-or-
The text was updated successfully, but these errors were encountered: