Book Image

MASTERING NSERVICEBUS AND PERSISTENCE

By : Richard L Helton
Book Image

MASTERING NSERVICEBUS AND PERSISTENCE

By: Richard L Helton

Overview of this book

Table of Contents (15 chapters)
Mastering NServiceBus and Persistence
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Services and deployment


Many of the programs that we have shown in the examples thus far have been console applications that generally don't run in production.

There is a framework that is embedded in a lot of NserviceBus code called Topshelf; see http://topshelf-project.com for the Topshelf website. TopShelf is a framework used to build Windows services.

To deploy NServiceBus, a command script in Windows can be written to deploy the application via the NServiceBys.Host.exe command from NServiceBus; refer to http://docs.particular.net/NServiceBus/the-nservicebus-host. To see what the available installations are, simply run NServiceBus.Host.exe /?.

A sample script to install a service can be created with something as simple as the following:

As a note, besides Visual Studio 2012, I use Notepad++, Free Toad for SQL Server, and MSMQ Commander.