Getting Started
Architecture
Transports
Persistence
ServiceInsight
ServicePulse
ServiceControl
Monitoring
Samples

Enforcement of best practices

Component: NServiceBus
NuGet Package: NServiceBus (9.x)

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

This feature can be disabled at the endpoint level using:

var routing = endpointConfiguration.UseTransport(new TransportDefinition());
routing.DoNotEnforceBestPractices();

or at the message level using:

var options = new SendOptions();

options.DoNotEnforceBestPractices();

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