Book Image

Learning NServiceBus - Second Edition

By : David Boike
Book Image

Learning NServiceBus - Second Edition

By: David Boike

Overview of this book

Table of Contents (18 chapters)
Learning NServiceBus Second Edition
About the Author
About the Reviewers


Installers are tasks that can run to set up an endpoint for the first time. We will learn how to make our own installers in Chapter 9, Administration, but the most common installers we usually think about are the tasks that create the endpoint's queues if they are missing.

Whether in a hosted endpoint or in self-hosting, installers will automatically run by default if there is a debugger attached. This is totally a convenience thing; it means that when we press F5 in Visual Studio, we don't have to worry about ensuring that queues have been created.

If a debugger is not attached, it's a different story. A hosted endpoint will run its installers when it is installed as a Windows Service, and not every time it starts up. This is good practice for hosted endpoints and generally works quite well.

A self-hosted endpoint running in the wild will not run its installers at all unless you ask it to. Your options are to manage queue creation through some type of deployment system (Octopus...