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
MessageSessionThe closing session.
OnMessage(MessageSession, BrokeredMessage)
Raises an event that occurs when a message has been brokered.
void OnMessage(MessageSession session, BrokeredMessage message)
Parameters
session
MessageSessionThe current message session.
message
BrokeredMessageThe brokered message.
OnSessionLost(Exception)
Raises an event that occurs when the session has been lost.
void OnSessionLost(Exception exception)
Parameters
exception
ExceptionThe error that caused the lost session.