Skip to content
On this page

Processor Thread Options

c#
services.AddServiceBus(builder => 
{
    builder.Options.ProcessorThread = new ProcessorThreadOptions
    {
        JoinTimeout = TimeSpan.FromSeconds(15),
        IsBackground = false,
        Priority = ThreadPriority.Normal
    };
})

The default JSON settings structure is as follows:

json
{
  "Shuttle": {
    "ServiceBus": {
      "ProcessorThread": {
        "JoinTimeout": "00:00:15",
        "IsBackground": false,
        "Priority": "Lowest"  
      }
    }
  }
}

Options

OptionsDefaultDescription
DistributorControlWorkQueueUriThe control inbox work queue uri of the distributor endpoint that this endpoint can handle messages on behalf of.
ThreadAvailableNotificationInterval15sA TimeSpan representing the duration to wait on an idle thread before notifying the distributor of availability again.
Processor Thread Options has loaded