Callback support

Component: SQL Server Transport
NuGet Package NServiceBus.SqlServer (2.x)
Target NServiceBus Version: 5.x

Disable callbacks

Callbacks and callback queues receivers are enabled by default. In order to disable them use the following setting:

var transport = busConfiguration.UseTransport<SqlServerTransport>();
transport.DisableCallbackReceiver();

Secondary queues use the same adaptive concurrency model as the primary queue. Secondary queues (and hence callbacks) are disabled for satellite receivers.

Callback receiver max concurrency

Changes the number of threads used for the callback receiver. The default is 1 thread.

var transport = busConfiguration.UseTransport<SqlServerTransport>();
transport.CallbackReceiverMaxConcurrency(10);

Related Articles


Last modified