C# Class Apache.NMS.MessageProducerExtensions

Datei anzeigen Open project: ThorTech/apache-nms

Public Methods

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

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

Send ( this producer, IDestination destination, object objMessage ) : void

Sends the message to the given destination

Send ( this producer, IDestination destination, object objMessage, MsgDeliveryMode deliveryMode, MsgPriority priority, System.TimeSpan timeToLive ) : void

Sends the message to the given destination with the explicit QoS configuration. The object must be serializable to XML.

Send ( this producer, object objMessage ) : void

Sends the message to the default destination for this producer. The object must be serializable to XML.

Send ( this producer, object objMessage, MsgDeliveryMode deliveryMode, MsgPriority priority, System.TimeSpan timeToLive ) : void

Sends the message to the default destination with the explicit QoS configuration. The object must be serializable to XML.

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 producer, object obj ) : ITextMessage
producer this
obj object
return ITextMessage

Send() public static method

Sends the message to the given destination
public static Send ( this producer, IDestination destination, object objMessage ) : void
producer this
destination IDestination
objMessage object
return void

Send() public static method

Sends the message to the given destination with the explicit QoS configuration. The object must be serializable to XML.
public static Send ( this producer, IDestination destination, object objMessage, MsgDeliveryMode deliveryMode, MsgPriority priority, System.TimeSpan timeToLive ) : void
producer this
destination IDestination
objMessage object
deliveryMode MsgDeliveryMode
priority MsgPriority
timeToLive System.TimeSpan
return void

Send() public static method

Sends the message to the default destination for this producer. The object must be serializable to XML.
public static Send ( this producer, object objMessage ) : void
producer this
objMessage object
return void

Send() public static method

Sends the message to the default destination with the explicit QoS configuration. The object must be serializable to XML.
public static Send ( this producer, object objMessage, MsgDeliveryMode deliveryMode, MsgPriority priority, System.TimeSpan timeToLive ) : void
producer this
objMessage object
deliveryMode MsgDeliveryMode
priority MsgPriority
timeToLive System.TimeSpan
return void