--
You received this message because you are subscribed to the Google Groups "masstransit-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to masstransit-dis...@googlegroups.com.
To post to this group, send email to masstrans...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/masstransit-discuss/ecb08c62-f4f3-467d-9726-7ce3890e500c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "masstransit-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to masstransit-dis...@googlegroups.com.
To post to this group, send email to masstrans...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/masstransit-discuss/898aa60f-6bc0-4375-bd7c-5b8705cbb14c%40googlegroups.com.
One last question, how do I create a consumer for RoutingSlipCompleted. I looking into "When_an_activity_runs_to_completion" but cannot rap by head round it.
--
You received this message because you are subscribed to the Google Groups "masstransit-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to masstransit-dis...@googlegroups.com.
To post to this group, send email to masstrans...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/masstransit-discuss/2ed159cf-5fe9-475e-8797-340c10639f48%40googlegroups.com.
You’re very close!
In the SetVariables, add:
builder.AddVariable(“requestId”, context.RequestId);
builder.AddVariable(“responseAddress”, context.ResponseAddress);
builder.AddVariable(“faultAddress”, context.FaultAddress);
Now, in your consumer where the RoutingSlipCompleted is received:
Var requestId = context.Message.GetVariable<Guid>(“requestId”);
Var responseAddress = context.Message.GetVariable<Uri>(“responseAddress”);
Var endpoint = context.GetSendEndpoint(responseQueueAddress);
// clever use of the host, by the way!
Endpoint.Send(new Response()…, sendContext => sendContext.RequestId = requestId);
Do the same with the RoutingSlipFaulted and you’re golden.
--
You received this message because you are subscribed to the Google Groups "masstransit-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to masstransit-dis...@googlegroups.com.
To post to this group, send email to masstrans...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/masstransit-discuss/035dfc2e-aa26-407c-a868-3f9dc4440dec%40googlegroups.com.