你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

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