Interface IMessageSessionHandlerFactory
- Namespace
- Microsoft.ServiceBus.Messaging
- Assembly
- Microsoft.ServiceBus.dll
Represents an interface for the handler factory associated with the message session.
public interface IMessageSessionHandlerFactory
Methods
CreateInstance(MessageSession, BrokeredMessage)
Creates an instance of the handler factory.
IMessageSessionHandler CreateInstance(MessageSession session, BrokeredMessage message)
Parameters
session
MessageSessionThe message session.
message
BrokeredMessageThe message.
Returns
- IMessageSessionHandler
The created instance.
DisposeInstance(IMessageSessionHandler)
Releases the resources associated with the handler factory instance.
void DisposeInstance(IMessageSessionHandler handler)
Parameters
handler
IMessageSessionHandlerThe handler instance.