ServiceBusProcessorOptions Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
The set of options that can be specified when creating a ServiceBusProcessor to configure its behavior.
public class ServiceBusProcessorOptions
type ServiceBusProcessorOptions = class
Public Class ServiceBusProcessorOptions
- Inheritance
-
System.ObjectServiceBusProcessorOptions
Constructors
ServiceBusProcessorOptions() |
Properties
AutoCompleteMessages |
Gets or sets a value that indicates whether the processor should automatically complete messages after the ProcessMessageAsync handler has completed processing. If the message handler triggers an exception, the message will not be automatically completed. The default value is true. |
MaxAutoLockRenewalDuration |
Gets or sets the maximum duration within which the lock will be renewed automatically. This value should be greater than the longest message lock duration; for example, the LockDuration Property. |
MaxConcurrentCalls |
Gets or sets the maximum number of concurrent calls to the message handler the processor should initiate. The default is 1. |
PrefetchCount |
Gets or sets the number of messages that will be eagerly requested from Queues or Subscriptions and queued locally, intended to help maximize throughput by allowing the processor to receive from a local cache rather than waiting on a service request. |
ReceiveMode |
Gets or sets the ReceiveMode used to specify how messages are received. Defaults to PeekLock mode. |
SubQueue |
Gets or sets the subqueue to connect the processor to. By default, the processor will not connect to a subqueue. |