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

QueueClient.RegisterSessionHandlerFactory 方法

定义

重载

RegisterSessionHandlerFactory(IMessageSessionAsyncHandlerFactory, SessionHandlerOptions)

使用指定选项注册消息会话处理程序工厂。

RegisterSessionHandlerFactory(IMessageSessionHandlerFactory, SessionHandlerOptions)

使用指定选项注册消息会话处理程序工厂。

RegisterSessionHandlerFactory(IMessageSessionAsyncHandlerFactory, SessionHandlerOptions)

使用指定选项注册消息会话处理程序工厂。

public void RegisterSessionHandlerFactory (Microsoft.ServiceBus.Messaging.IMessageSessionAsyncHandlerFactory factory, Microsoft.ServiceBus.Messaging.SessionHandlerOptions options);
member this.RegisterSessionHandlerFactory : Microsoft.ServiceBus.Messaging.IMessageSessionAsyncHandlerFactory * Microsoft.ServiceBus.Messaging.SessionHandlerOptions -> unit
Public Sub RegisterSessionHandlerFactory (factory As IMessageSessionAsyncHandlerFactory, options As SessionHandlerOptions)

参数

factory
IMessageSessionAsyncHandlerFactory

要注册的处理程序工厂。

options
SessionHandlerOptions

处理程序选项。

适用于

RegisterSessionHandlerFactory(IMessageSessionHandlerFactory, SessionHandlerOptions)

使用指定选项注册消息会话处理程序工厂。

public void RegisterSessionHandlerFactory (Microsoft.ServiceBus.Messaging.IMessageSessionHandlerFactory factory, Microsoft.ServiceBus.Messaging.SessionHandlerOptions options);
member this.RegisterSessionHandlerFactory : Microsoft.ServiceBus.Messaging.IMessageSessionHandlerFactory * Microsoft.ServiceBus.Messaging.SessionHandlerOptions -> unit
Public Sub RegisterSessionHandlerFactory (factory As IMessageSessionHandlerFactory, options As SessionHandlerOptions)

参数

factory
IMessageSessionHandlerFactory

要注册的处理程序工厂。

options
SessionHandlerOptions

处理程序选项。

适用于