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

QueueClient.RegisterSessionHandlerAsync 方法

定义

重载

RegisterSessionHandlerAsync(Type)

使用特定类型异步注册会话处理程序。

RegisterSessionHandlerAsync(Type, SessionHandlerOptions)

使用特定类型和处理程序选项异步注册会话处理程序。

RegisterSessionHandlerAsync(Type)

使用特定类型异步注册会话处理程序。

public System.Threading.Tasks.Task RegisterSessionHandlerAsync (Type handlerType);
member this.RegisterSessionHandlerAsync : Type -> System.Threading.Tasks.Task
Public Function RegisterSessionHandlerAsync (handlerType As Type) As Task

参数

handlerType
Type

处理程序类型。

返回

表示异步操作的任务对象。

适用于

RegisterSessionHandlerAsync(Type, SessionHandlerOptions)

使用特定类型和处理程序选项异步注册会话处理程序。

public System.Threading.Tasks.Task RegisterSessionHandlerAsync (Type handlerType, Microsoft.ServiceBus.Messaging.SessionHandlerOptions options);
member this.RegisterSessionHandlerAsync : Type * Microsoft.ServiceBus.Messaging.SessionHandlerOptions -> System.Threading.Tasks.Task
Public Function RegisterSessionHandlerAsync (handlerType As Type, options As SessionHandlerOptions) As Task

参数

handlerType
Type

处理程序类型。

options
SessionHandlerOptions

会话处理程序选项。

返回

表示异步操作的任务对象。

适用于