Publishing custom event when routing slip completes
See original GitHub issueWith the current implementation of routing slip we can send events to the specific endpoints which is fine in most cases. But, for example, in my case, I have a routing slip for for creating a user (or business logic requires couple of activities in order for user to be created) and when routing slip is finished I want to publish UserCreatedEvent and this event is handled in 4-5 different consumers (send welcome email to the user, saga, send notification to the admin, etc). With current implementation I have to AddSubcription for all of these consumers endpoints, and it would be great if we could do something like:
await builder.AddSubscription(RoutingSlipEvents.Completed, context =>
context.Publish<UserCreatedEvent >(new
{
command.UserId,
context.CorrelationId
}));
Issue Analytics
- State:
- Created 5 years ago
- Comments:6 (5 by maintainers)
Top Results From Across the Web
Routing Slip
During routing slip execution, events are published when the routing slip completes or faults. Every event message includes the TrackingNumber as well as...
Read more >MassTransit/docs/advanced/courier/subscriptions.md at ...
By default, routing slip events are published -- which means that any subscribed consumers will receive the events. While this is useful getting...
Read more >Is it possible to add dynamic data to an MassTransit courier ...
Good use case, and yes, it's possible to add the details you need to the built-in routing slip events. Instead of throwing an...
Read more >MassTransit Courier Routing Slip Activities - YouTube
Episode Eight uses Courier, MassTransit's routing slip pattern, to create an inventory allocation activity as the first step in what will ...
Read more >Routing Slip in a long-running process
I'm implementing a case-flow where the different steps in the case are Activities on a routing slip. The activities are created based on...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Well, if you need something in the next month, I’d look for alternatives. It isn’t something I plan to investigate in the next week.
Now that an endpoint address can use the
topic:namesyntax to send to a topic, this should be possible.