Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying Learning NServiceBus Sagas
  • Table Of Contents Toc
Learning NServiceBus Sagas

Learning NServiceBus Sagas

By : Richard L Helton
3 (2)
close
close
Learning NServiceBus Sagas

Learning NServiceBus Sagas

3 (2)
By: Richard L Helton

Overview of this book

If you are an Enterprise C# developer who wishes to extend your knowledge of NServiceBus and Enterprise Service Bus in C#, this is the book for you. This book is designed to enhance the education of ESBs and their messaging, whether you are a beginner or a seasoned expert in Enterprise C#, Apex, and Visualforce pages.
Table of Contents (8 chapters)
close
close

Adding NServiceBus to MVC


We will next be extending our BasicPaymentClient folder and projects into a SagaPaymentClient folder and projects with the addition of the bus. The differences will be as follows:

  • We will refactor the WCF client out of the MVC controller and move it into a new message handler.

  • We will create a database that keeps track of the state of the message. The saga data will be saved in the nservicebus table. Ensure that it is created when running the saga code.

  • We will create a new message handler and put the WCF client code in it. This code from the WCF client to the WCF server will be kept separate from the frontend code as far as possible, to keep the PayMessage class completely separate from the frontend.

  • We will create a new message handler in the MVC that will update the DB with the message state as it receives the new state from the endpoints. We will look at the code for the message and saga handlers as we test them in the next section.

  • NServiceBus.Testing offers testing...

CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
Learning NServiceBus Sagas
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon