The ISession type exposes the following members.
Methods
Name | Description | |
---|---|---|
Close |
Closes the session. There is no need to close the producers and consumers
of a closed session.
| |
Commit |
If this is a transactional session then commit all message
send and acknowledgements for producers and consumers in this session
| |
CreateBrowser(IQueue) |
Creates a QueueBrowser object to peek at the messages on the specified queue.
| |
CreateBrowser(IQueue, String) |
Creates a QueueBrowser object to peek at the messages on the specified queue
using a message selector.
| |
CreateBytesMessage()()()() |
Creates a new binary message
| |
CreateBytesMessage(array<Byte>[]()[][]) |
Creates a new binary message with the given body
| |
CreateConsumer(IDestination) |
Creates a consumer of messages on a given destination
| |
CreateConsumer(IDestination, String) |
Creates a consumer of messages on a given destination with a selector
| |
CreateConsumer(IDestination, String, Boolean) |
Creates a consumer of messages on a given destination with a selector
| |
CreateDurableConsumer |
Creates a named durable consumer of messages on a given destination with a selector
| |
CreateMapMessage |
Creates a new Map message which contains primitive key and value pairs
| |
CreateMessage |
Creates a new message with an empty body
| |
CreateObjectMessage |
Creates a new Object message containing the given .NET object as the body
| |
CreateProducer()()()() |
Creates a producer of messages
| |
CreateProducer(IDestination) |
Creates a producer of messages on a given destination
| |
CreateStreamMessage |
Creates a new stream message
| |
CreateTemporaryQueue |
Creates a temporary queue
| |
CreateTemporaryTopic |
Creates a temporary topic
| |
CreateTextMessage()()()() |
Creates a new text message with an empty body
| |
CreateTextMessage(String) |
Creates a new text message with the given body
| |
DeleteDestination |
Delete a destination (Queue, Topic, Temp Queue, Temp Topic).
| |
DeleteDurableConsumer |
Deletes a durable consumer created with CreateDurableConsumer().
| |
Dispose | Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. (Inherited from IDisposable.) | |
GetQueue |
Returns the queue for the given name
| |
GetTopic |
Returns the topic for the given name
| |
Recover |
Stops all Message delivery in this session and restarts it again
with the oldest unabcknowledged message. Messages that were delivered
but not acknowledge should have their redelivered property set.
This is an optional method that may not by implemented by all NMS
providers, if not implemented an Exception will be thrown.
Message redelivery is not requried to be performed in the original
order. It is not valid to call this method on a Transacted Session.
| |
Rollback |
If this is a transactional session then rollback all message
send and acknowledgements for producers and consumers in this session
|
Extension Methods
Name | Description | |
---|---|---|
CreateXmlMessage |
Extension function to create a text message from an object. The object must be serializable to XML.
(Defined by SessionExtensions.) | |
DeleteDestination(String) | Overloaded.
Extension function to delete the named destination by parsing the embedded type prefix. Default is Queue if no prefix is
embedded in the destinationName.
(Defined by SessionExtensions.) | |
DeleteDestination(String, DestinationType) | Overloaded.
Extension function to delete the named destination by parsing the embedded type prefix.
(Defined by SessionExtensions.) | |
DeleteQueue |
Extension function to delete the named destination by parsing the embedded type prefix.
(Defined by SessionExtensions.) | |
DeleteTopic |
Extension function to delete the named destination by parsing the embedded type prefix.
(Defined by SessionExtensions.) | |
GetDestination(String) | Overloaded.
Extension function to get the destination by parsing the embedded type prefix. Default is Queue if no prefix is
embedded in the destinationName.
(Defined by SessionExtensions.) | |
GetDestination(String, DestinationType) | Overloaded.
Extension function to get the destination by parsing the embedded type prefix.
(Defined by SessionExtensions.) |
Properties
Name | Description | |
---|---|---|
AcknowledgementMode | ||
ConsumerTransformer |
A Delegate that is called each time a Message is dispatched to allow the client to do
any necessary transformations on the received message before it is delivered.
The Session instance sets the delegate on each Consumer it creates.
| |
ProducerTransformer |
A delegate that is called each time a Message is sent from this Producer which allows
the application to perform any needed transformations on the Message before it is sent.
The Session instance sets the delegate on each Producer it creates.
| |
RequestTimeout | ||
Transacted |