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.

C#
public virtual Azure.Messaging.ServiceBus.ServiceBusProcessor CreateProcessor(string topicName, string subscriptionName);

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

Azure SDK for .NET Preview and Azure SDK for .NET Latest
Product Versions
Azure SDK for .NET Latest, Preview

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.

C#
public virtual Azure.Messaging.ServiceBus.ServiceBusProcessor CreateProcessor(string topicName, string subscriptionName, Azure.Messaging.ServiceBus.ServiceBusProcessorOptions options);

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

Azure SDK for .NET Preview and Azure SDK for .NET Latest
Product Versions
Azure SDK for .NET Latest, Preview

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.

C#
public virtual Azure.Messaging.ServiceBus.ServiceBusProcessor CreateProcessor(string queueName);

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

Azure SDK for .NET Preview and Azure SDK for .NET Latest
Product Versions
Azure SDK for .NET Latest, Preview

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.

C#
public virtual Azure.Messaging.ServiceBus.ServiceBusProcessor CreateProcessor(string queueName, Azure.Messaging.ServiceBus.ServiceBusProcessorOptions options);

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

Azure SDK for .NET Preview and Azure SDK for .NET Latest
Product Versions
Azure SDK for .NET Latest, Preview