Share via


ServiceBusClient.CreateProcessor Method

Definition

Overloads

CreateProcessor(String, String)

Creates a ServiceBusProcessor instance that can be used to process messages using event handlers that are set on the processor. It uses ServiceBusReceiveMode to specify how messages are received. Defaults to PeekLock mode. If you want to change the ServiceBusReceiveMode, use CreateProcessor(String, String, ServiceBusProcessorOptions) method. The ServiceBusReceiveMode is set in ServiceBusProcessorOptions type.

CreateProcessor(String, String, ServiceBusProcessorOptions)

Creates a ServiceBusProcessor instance that can be used to process messages using event handlers that are set on the processor. It uses ServiceBusReceiveMode to specify how messages are received. Defaults to PeekLock mode. The ServiceBusReceiveMode is set in ServiceBusProcessorOptions type.

CreateProcessor(String)

Creates a ServiceBusProcessor instance that can be used to process messages using event handlers that are set on the processor. It uses ServiceBusReceiveMode to specify how messages are received. Defaults to PeekLock mode. If you want to change the ServiceBusReceiveMode, use CreateProcessor(String, ServiceBusProcessorOptions) method. The ServiceBusReceiveMode is set in ServiceBusProcessorOptions type.

CreateProcessor(String, ServiceBusProcessorOptions)

Creates a ServiceBusProcessor instance that can be used to process messages using event handlers that are set on the processor. It uses ServiceBusReceiveMode to specify how messages are received. Defaults to PeekLock mode. The ServiceBusReceiveMode is set in ServiceBusProcessorOptions type.

CreateProcessor(String, String)

Source:
ServiceBusClient.cs
Source:
ServiceBusClient.cs

Creates a ServiceBusProcessor instance that can be used to process messages using event handlers that are set on the processor. It uses ServiceBusReceiveMode to specify how messages are received. Defaults to PeekLock mode. If you want to change the ServiceBusReceiveMode, use CreateProcessor(String, String, ServiceBusProcessorOptions) method. The ServiceBusReceiveMode is set in ServiceBusProcessorOptions type.

public virtual Azure.Messaging.ServiceBus.ServiceBusProcessor CreateProcessor (string topicName, string subscriptionName);
abstract member CreateProcessor : string * string -> Azure.Messaging.ServiceBus.ServiceBusProcessor
override this.CreateProcessor : string * string -> Azure.Messaging.ServiceBus.ServiceBusProcessor
Public Overridable Function CreateProcessor (topicName As String, subscriptionName As String) As ServiceBusProcessor

Parameters

topicName
String

The topic to create a ServiceBusProcessor for.

subscriptionName
String

The subscription to create a ServiceBusProcessor for.

Returns

A ServiceBusProcessor scoped to the specified topic and subscription.

Exceptions

The ServiceBusClient was constructed with a connection string containing the "EntityPath" token that has a different value than the topicName value specified here.

Applies to

CreateProcessor(String, String, ServiceBusProcessorOptions)

Source:
ServiceBusClient.cs
Source:
ServiceBusClient.cs

Creates a ServiceBusProcessor instance that can be used to process messages using event handlers that are set on the processor. It uses ServiceBusReceiveMode to specify how messages are received. Defaults to PeekLock mode. The ServiceBusReceiveMode is set in ServiceBusProcessorOptions type.

public virtual Azure.Messaging.ServiceBus.ServiceBusProcessor CreateProcessor (string topicName, string subscriptionName, Azure.Messaging.ServiceBus.ServiceBusProcessorOptions options);
abstract member CreateProcessor : string * string * Azure.Messaging.ServiceBus.ServiceBusProcessorOptions -> Azure.Messaging.ServiceBus.ServiceBusProcessor
override this.CreateProcessor : string * string * Azure.Messaging.ServiceBus.ServiceBusProcessorOptions -> Azure.Messaging.ServiceBus.ServiceBusProcessor
Public Overridable Function CreateProcessor (topicName As String, subscriptionName As String, options As ServiceBusProcessorOptions) As ServiceBusProcessor

Parameters

topicName
String

The topic to create a ServiceBusProcessor for.

subscriptionName
String

The subscription to create a ServiceBusProcessor for.

options
ServiceBusProcessorOptions

The set of ServiceBusProcessorOptions to use for configuring the ServiceBusProcessor.

Returns

A ServiceBusProcessor scoped to the specified topic and subscription.

Applies to

CreateProcessor(String)

Source:
ServiceBusClient.cs
Source:
ServiceBusClient.cs

Creates a ServiceBusProcessor instance that can be used to process messages using event handlers that are set on the processor. It uses ServiceBusReceiveMode to specify how messages are received. Defaults to PeekLock mode. If you want to change the ServiceBusReceiveMode, use CreateProcessor(String, ServiceBusProcessorOptions) method. The ServiceBusReceiveMode is set in ServiceBusProcessorOptions type.

public virtual Azure.Messaging.ServiceBus.ServiceBusProcessor CreateProcessor (string queueName);
abstract member CreateProcessor : string -> Azure.Messaging.ServiceBus.ServiceBusProcessor
override this.CreateProcessor : string -> Azure.Messaging.ServiceBus.ServiceBusProcessor
Public Overridable Function CreateProcessor (queueName As String) As ServiceBusProcessor

Parameters

queueName
String

The queue to create a ServiceBusProcessor for.

Returns

A ServiceBusProcessor scoped to the specified queue.

Exceptions

The ServiceBusClient was constructed with a connection string containing the "EntityPath" token that has a different value than the queueName value specified here.

Applies to

CreateProcessor(String, ServiceBusProcessorOptions)

Source:
ServiceBusClient.cs
Source:
ServiceBusClient.cs

Creates a ServiceBusProcessor instance that can be used to process messages using event handlers that are set on the processor. It uses ServiceBusReceiveMode to specify how messages are received. Defaults to PeekLock mode. The ServiceBusReceiveMode is set in ServiceBusProcessorOptions type.

public virtual Azure.Messaging.ServiceBus.ServiceBusProcessor CreateProcessor (string queueName, Azure.Messaging.ServiceBus.ServiceBusProcessorOptions options);
abstract member CreateProcessor : string * Azure.Messaging.ServiceBus.ServiceBusProcessorOptions -> Azure.Messaging.ServiceBus.ServiceBusProcessor
override this.CreateProcessor : string * Azure.Messaging.ServiceBus.ServiceBusProcessorOptions -> Azure.Messaging.ServiceBus.ServiceBusProcessor
Public Overridable Function CreateProcessor (queueName As String, options As ServiceBusProcessorOptions) As ServiceBusProcessor

Parameters

queueName
String

The queue to create a ServiceBusProcessor for.

options
ServiceBusProcessorOptions

The set of ServiceBusProcessorOptions to use for configuring the ServiceBusProcessor.

Returns

A ServiceBusProcessor scoped to the specified queue.

Exceptions

The ServiceBusClient was constructed with a connection string containing the "EntityPath" token that has a different value than the queueName value specified here.

Applies to