Table of Contents

Interface IMessageSessionHandler

Namespace
Microsoft.ServiceBus.Messaging
Assembly
Microsoft.ServiceBus.dll

Represents an interface for the handler associated with the message session.

public interface IMessageSessionHandler

Methods

OnCloseSession(MessageSession)

Raises an event that occurs when an active session closes.

void OnCloseSession(MessageSession session)

Parameters

session MessageSession

The closing session.

OnMessage(MessageSession, BrokeredMessage)

Raises an event that occurs when a message has been brokered.

void OnMessage(MessageSession session, BrokeredMessage message)

Parameters

session MessageSession

The current message session.

message BrokeredMessage

The brokered message.

OnSessionLost(Exception)

Raises an event that occurs when the session has been lost.

void OnSessionLost(Exception exception)

Parameters

exception Exception

The error that caused the lost session.