AI agents: use the documentation index at llms.txt to locate machine-readable pages. This section is indexed by https://docs.particular.net/nservicebus/llms.txt. The markdown version of this page is served as plain text. An MCP server at /mcp serves the same content via the search_docs and read_doc tools; it is read-only and needs no credentials. Markdown versions of documentation pages are available by appending .md to the page URL. Directory URLs use index.md. They are served as text/plain because some retrieval backends reject text/markdown.

Cooperative cancellation

Component:
NServiceBus
NuGet Package:
NServiceBus 7.x
Standard support for version 7.x of NServiceBus has expired. For more information see our Support Policy.

Starting with version 8, NServiceBus supports cooperative cancellation. This enables NServiceBus to participate in graceful shutdown of its host by exposing a cancellation token to abort potentially long-running operations both outside and inside the message processing pipeline.

Switch to the NServiceBus 8 version of this page to see content about this feature.

List of Samples