question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Publishing custom event when routing slip completes

See original GitHub issue

With 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:closed
  • Created 5 years ago
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
phatboygcommented, Jun 1, 2018

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.

0reactions
phatboygcommented, Mar 29, 2020

Now that an endpoint address can use the topic:name syntax to send to a topic, this should be possible.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found