Book Image

Learning NServiceBus Sagas

By : Richard L Helton
Book Image

Learning NServiceBus Sagas

By: Richard L Helton

Overview of this book

Table of Contents (13 chapters)

Sample e-mail saga notification


We mentioned earlier that normal production is filled with notifications checking queues, tables, processes, tasks, and more. We will create an NSB saga program that is based on a timeout to send a message to operations or to ourselves as developers.

The frontend of the application will use Windows Presentation Framework (WPF), using the Extensible Application Markup Language (XAML). An introduction to XAML can be found at http://msdn.microsoft.com/en-us/library/ms752059(v=vs.110).aspx.

The controller piece in the middle of the application is used to apply the timeout, route the messaging, and persist the state in the saga. The piece that the controller will communicate with to send the e-mail is the email client, which will have a message handler to communicate with the saga. This interaction has been depicted in the following diagram:

The requirement of this application is that we set a timer through a GUI. This GUI will also allow some e-mail variables to...