When Endpoint Instance Starts and Stops

Component:
NServiceBus

There are several options available to execute custom code as part of the endpoint's startup/shutdown sequence: