Enforcement of best practices

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

By default, messaging best practices are enforced for messages defined as either commands or events.

In NServiceBus versions 6 and above, the default behavior can be overridden.

This feature can be disabled at the endpoint level using:

var transport = endpointConfiguration.UseTransport<TransportName>();
var routing = transport.Routing();

or at the message level using:

var options = new SendOptions();


await context.Send(new MyEvent(), options)

Last modified