C# Class Apache.NMS.SessionExtensions

Datei anzeigen Open project: ThorTech/apache-nms

Public Methods

Method Description
CreateXmlMessage ( this session, object obj ) : ITextMessage

Extension function to create a text message from an object. The object must be serializable to XML.

DeleteDestination ( this session, string destinationName ) : void

Extension function to delete the named destination by parsing the embedded type prefix. Default is Queue if no prefix is embedded in the destinationName.

DeleteDestination ( this session, string destinationName, DestinationType defaultType ) : void

Extension function to delete the named destination by parsing the embedded type prefix.

DeleteQueue ( this session, string queueName ) : void

Extension function to delete the named destination by parsing the embedded type prefix.

DeleteTopic ( this session, string topicName ) : void

Extension function to delete the named destination by parsing the embedded type prefix.

GetDestination ( this session, string destinationName ) : IDestination

Extension function to get the destination by parsing the embedded type prefix. Default is Queue if no prefix is embedded in the destinationName.

GetDestination ( this session, string destinationName, DestinationType defaultType ) : IDestination

Extension function to get the destination by parsing the embedded type prefix.

GetQueue ( this session, string queueName ) : IQueue

Extension function to get the destination by parsing the embedded type prefix.

GetTopic ( this session, string topicName ) : ITopic

Extension function to get the destination by parsing the embedded type prefix.

Method Details

CreateXmlMessage() public static method

Extension function to create a text message from an object. The object must be serializable to XML.
public static CreateXmlMessage ( this session, object obj ) : ITextMessage
session this
obj object
return ITextMessage

DeleteDestination() public static method

Extension function to delete the named destination by parsing the embedded type prefix. Default is Queue if no prefix is embedded in the destinationName.
public static DeleteDestination ( this session, string destinationName ) : void
session this
destinationName string
return void

DeleteDestination() public static method

Extension function to delete the named destination by parsing the embedded type prefix.
public static DeleteDestination ( this session, string destinationName, DestinationType defaultType ) : void
session this
destinationName string
defaultType DestinationType
return void

DeleteQueue() public static method

Extension function to delete the named destination by parsing the embedded type prefix.
public static DeleteQueue ( this session, string queueName ) : void
session this
queueName string
return void

DeleteTopic() public static method

Extension function to delete the named destination by parsing the embedded type prefix.
public static DeleteTopic ( this session, string topicName ) : void
session this
topicName string
return void

GetDestination() public static method

Extension function to get the destination by parsing the embedded type prefix. Default is Queue if no prefix is embedded in the destinationName.
public static GetDestination ( this session, string destinationName ) : IDestination
session this
destinationName string
return IDestination

GetDestination() public static method

Extension function to get the destination by parsing the embedded type prefix.
public static GetDestination ( this session, string destinationName, DestinationType defaultType ) : IDestination
session this
destinationName string
defaultType DestinationType
return IDestination

GetQueue() public static method

Extension function to get the destination by parsing the embedded type prefix.
public static GetQueue ( this session, string queueName ) : IQueue
session this
queueName string
return IQueue

GetTopic() public static method

Extension function to get the destination by parsing the embedded type prefix.
public static GetTopic ( this session, string topicName ) : ITopic
session this
topicName string
return ITopic