ServiceBusClient.CreateSessionProcessor Method

Definition

Overloads

CreateSessionProcessor(String, ServiceBusSessionProcessorOptions)

Creates a ServiceBusSessionProcessor instance that can be used to process session 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.

CreateSessionProcessor(String, String, ServiceBusSessionProcessorOptions)

Creates a ServiceBusSessionProcessor 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.

CreateSessionProcessor(String, ServiceBusSessionProcessorOptions)

Source:
ServiceBusClient.cs
Source:
ServiceBusClient.cs

Creates a ServiceBusSessionProcessor instance that can be used to process session 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.ServiceBusSessionProcessor CreateSessionProcessor (string queueName, Azure.Messaging.ServiceBus.ServiceBusSessionProcessorOptions options = default);
abstract member CreateSessionProcessor : string * Azure.Messaging.ServiceBus.ServiceBusSessionProcessorOptions -> Azure.Messaging.ServiceBus.ServiceBusSessionProcessor
override this.CreateSessionProcessor : string * Azure.Messaging.ServiceBus.ServiceBusSessionProcessorOptions -> Azure.Messaging.ServiceBus.ServiceBusSessionProcessor
Public Overridable Function CreateSessionProcessor (queueName As String, Optional options As ServiceBusSessionProcessorOptions = Nothing) As ServiceBusSessionProcessor

Parameters

queueName
String

The queue to create a ServiceBusSessionProcessor for.

Returns

A ServiceBusSessionProcessor scoped to the specified queue.

Applies to

CreateSessionProcessor(String, String, ServiceBusSessionProcessorOptions)

Source:
ServiceBusClient.cs
Source:
ServiceBusClient.cs

Creates a ServiceBusSessionProcessor 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.ServiceBusSessionProcessor CreateSessionProcessor (string topicName, string subscriptionName, Azure.Messaging.ServiceBus.ServiceBusSessionProcessorOptions options = default);
abstract member CreateSessionProcessor : string * string * Azure.Messaging.ServiceBus.ServiceBusSessionProcessorOptions -> Azure.Messaging.ServiceBus.ServiceBusSessionProcessor
override this.CreateSessionProcessor : string * string * Azure.Messaging.ServiceBus.ServiceBusSessionProcessorOptions -> Azure.Messaging.ServiceBus.ServiceBusSessionProcessor
Public Overridable Function CreateSessionProcessor (topicName As String, subscriptionName As String, Optional options As ServiceBusSessionProcessorOptions = Nothing) As ServiceBusSessionProcessor

Parameters

topicName
String

The topic to create a ServiceBusSessionProcessor for.

subscriptionName
String

The subscription to create a ServiceBusSessionProcessor for.

Returns

A ServiceBusProcessor scoped to the specified topic and subscription.

Applies to