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