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
-
ServiceBusProcessorOptions
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. |
Identifier |
A property used to set the ServiceBusProcessor ID to identify the processor. This can be used to correlate logs
and exceptions. If |
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. To specify an infinite duration, use InfiniteTimeSpan. |
MaxConcurrentCalls |
Gets or sets the maximum number of concurrent calls to the message handler the processor should initiate. |
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. |
SubQueue |
Gets or sets the subqueue to connect the processor to. |