Partager via


ServiceBusSessionProcessor.OnSessionInitializingAsync Méthode

Définition

Appelle le gestionnaire d’événements d’ouverture de session lorsqu’une nouvelle session est sur le point d’être traitée. Cette méthode peut être remplacée pour déclencher manuellement un événement à des fins de test.

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

Paramètres

args
ProcessSessionEventArgs

Les arguments d’événement contenant des informations relatives à la session.

Retours

S’applique à