IMessageSessionHandler IMessageSessionHandler Interface

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

Syntax

Declaration

public interface IMessageSessionHandlerPublic Interface IMessageSessionHandler

Methods summary

Raises an event that occurs when an active session closes.

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

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

Methods

  • OnCloseSession(MessageSession)
    OnCloseSession(MessageSession)

    Raises an event that occurs when an active session closes.

    void OnCloseSession(MessageSession session)Sub OnCloseSession(session As MessageSession)

    Parameters

  • OnMessage(MessageSession, BrokeredMessage)
    OnMessage(MessageSession, BrokeredMessage)

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

    void OnMessage(MessageSession session, BrokeredMessage message)Sub OnMessage(session As MessageSession, message As BrokeredMessage)

    Parameters

  • OnSessionLost(Exception)
    OnSessionLost(Exception)

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

    void OnSessionLost(Exception exception)Sub OnSessionLost(exception As Exception)

    Parameters

Details

Namespace

Microsoft.ServiceBus.Messaging

Assembly

Microsoft.ServiceBus.dll