ServiceBusClient.CreateSessionProcessor Method
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.
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.
The set of ServiceBusSessionProcessorOptions to use for configuring the ServiceBusSessionProcessor.
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.
The set of ServiceBusSessionProcessorOptions to use for configuring the ServiceBusSessionProcessor.
Returns
A ServiceBusProcessor scoped to the specified topic and subscription.