ProcessSessionEventArgs(ServiceBusSessionReceiver, CancellationToken) Constructor

Definition

Initializes a new instance of the ProcessSessionEventArgs class.

public ProcessSessionEventArgs (Azure.Messaging.ServiceBus.ServiceBusSessionReceiver receiver, System.Threading.CancellationToken cancellationToken);
new Azure.Messaging.ServiceBus.ProcessSessionEventArgs : Azure.Messaging.ServiceBus.ServiceBusSessionReceiver * System.Threading.CancellationToken -> Azure.Messaging.ServiceBus.ProcessSessionEventArgs
Public Sub New (receiver As ServiceBusSessionReceiver, cancellationToken As CancellationToken)

Parameters

receiver
ServiceBusSessionReceiver

The ServiceBusSessionReceiver that will be used for all settlement methods for the args.

cancellationToken
System.Threading.CancellationToken

The processor's System.Threading.CancellationToken instance which will be cancelled in the event that StopProcessingAsync(CancellationToken) is called.

Applies to