Condividi tramite


ServiceBusSessionProcessor.OnSessionClosingAsync Method

Definition

Invokes the session close event handler when a session is about to be closed for processing. This method can be overriden to raise an event manually for testing purposes.

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

Parameters

args
ProcessSessionEventArgs

The event args containing information related to the session.

Returns

Applies to