Database Reference
In-Depth Information
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 mes-
sage, PaymentNotification .
The copy preview box will appear again as we copy the sending of the new command mes-
sage 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();
Bus.Send(paymentNotification);
}
}
We will deploy the receiving endpoint on to a new endpoint called NotifyProcessing .
Search WWH ::




Custom Search