O'Reilly logo

Mastering NServiceBus and Persistence by Rich Helton

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Sagas through ServiceMatrix

Not only can we develop endpoints for command and publish/subscribe messages, but we can also develop sagas in ServiceMatrix. We will start by creating a new command message, PaymentNotification.

Sagas through ServiceMatrix

The copy preview box will appear again as we copy the sending of the new command message to the message handler:

 public partial class PaymentAcceptedHandler { partial void HandleImplementation(PaymentAccepted message) { // TODO: PaymentAcceptedHandler: Add code to handle the PaymentAccepted message. Console.WriteLine("Paying received " + message.GetType().Name); var paymentNotification = new PaymentEngine.Internal.Commands.Paying.PaymentNotification(); ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required