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.

Message forwarding

Component:
NServiceBus
NuGet Package:
NServiceBus 10.x

Use this feature to forward successfully processed messages from an endpoint to a specific destination endpoint for additional processing. Forwarding messages can be particularly useful in complex upgrade scenarios.

Forwarding a message from the handler

Individual messages can be forwarded directly from the handler:

await context.ForwardCurrentMessageTo("destinationQueue@machine");

Auditing vs. Forwarding

Auditing and Forwarding are very similar. Both send a copy of the processed message to another queue. The main difference is the intended usage scenarios.

Auditing is an implicit per-message operation configured at the endpoint level. An audit message is automatically enriched with additional information regarding its processing for ingestion by ServiceControl Audits.

Message forwarding is an explicit per-message operation from your handler, enabling additional custom processing for your system needs.

The forwarded messages do not contain the audit message headers.

Related Articles

  • Auditing Messages
    Send a copy of every successfully processed message to a central place for analysis and compliance purposes.