Share via


ServiceBusSessionProcessor.OnSessionInitializingAsync Method

Definition

Invokes the session open event handler when a new session is about to be processed. This method can be overriden to raise an event manually for testing purposes.

protected internal virtual System.Threading.Tasks.Task OnSessionInitializingAsync (Azure.Messaging.ServiceBus.ProcessSessionEventArgs args);
abstract member OnSessionInitializingAsync : Azure.Messaging.ServiceBus.ProcessSessionEventArgs -> System.Threading.Tasks.Task
override this.OnSessionInitializingAsync : Azure.Messaging.ServiceBus.ProcessSessionEventArgs -> System.Threading.Tasks.Task
Protected Friend Overridable Function OnSessionInitializingAsync (args As ProcessSessionEventArgs) As Task

Parameters

args
ProcessSessionEventArgs

The event args containing information related to the session.

Returns

Applies to