Table of Contents

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 MessageSession

The message session.

message BrokeredMessage

The message.

Returns

IMessageSessionHandler

The created instance.

DisposeInstance(IMessageSessionHandler)

Releases the resources associated with the handler factory instance.

void DisposeInstance(IMessageSessionHandler handler)

Parameters

handler IMessageSessionHandler

The handler instance.