The INetTxSession type exposes the following members.

Methods

  NameDescription
Public methodClose
Closes the session. There is no need to close the producers and consumers of a closed session.
(Inherited from ISession.)
Public methodCommit
If this is a transactional session then commit all message send and acknowledgements for producers and consumers in this session
(Inherited from ISession.)
Public methodCreateBrowser(IQueue)
Creates a QueueBrowser object to peek at the messages on the specified queue.
(Inherited from ISession.)
Public methodCreateBrowser(IQueue, String)
Creates a QueueBrowser object to peek at the messages on the specified queue using a message selector.
(Inherited from ISession.)
Public methodCreateBytesMessage()()()()
Creates a new binary message
(Inherited from ISession.)
Public methodCreateBytesMessage(array<Byte>[]()[][])
Creates a new binary message with the given body
(Inherited from ISession.)
Public methodCreateConsumer(IDestination)
Creates a consumer of messages on a given destination
(Inherited from ISession.)
Public methodCreateConsumer(IDestination, String)
Creates a consumer of messages on a given destination with a selector
(Inherited from ISession.)
Public methodCreateConsumer(IDestination, String, Boolean)
Creates a consumer of messages on a given destination with a selector
(Inherited from ISession.)
Public methodCreateDurableConsumer
Creates a named durable consumer of messages on a given destination with a selector
(Inherited from ISession.)
Public methodCreateMapMessage
Creates a new Map message which contains primitive key and value pairs
(Inherited from ISession.)
Public methodCreateMessage
Creates a new message with an empty body
(Inherited from ISession.)
Public methodCreateObjectMessage
Creates a new Object message containing the given .NET object as the body
(Inherited from ISession.)
Public methodCreateProducer()()()()
Creates a producer of messages
(Inherited from ISession.)
Public methodCreateProducer(IDestination)
Creates a producer of messages on a given destination
(Inherited from ISession.)
Public methodCreateStreamMessage
Creates a new stream message
(Inherited from ISession.)
Public methodCreateTemporaryQueue
Creates a temporary queue
(Inherited from ISession.)
Public methodCreateTemporaryTopic
Creates a temporary topic
(Inherited from ISession.)
Public methodCreateTextMessage()()()()
Creates a new text message with an empty body
(Inherited from ISession.)
Public methodCreateTextMessage(String)
Creates a new text message with the given body
(Inherited from ISession.)
Public methodDeleteDestination
Delete a destination (Queue, Topic, Temp Queue, Temp Topic).
(Inherited from ISession.)
Public methodDeleteDurableConsumer
Deletes a durable consumer created with CreateDurableConsumer().
(Inherited from ISession.)
Public methodDispose
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
(Inherited from IDisposable.)
Public methodEnlist
Enlist the Session in the specified Transaction. If the Session is already enlisted in a Transaction or there is an Ambient Transaction and the given TX is not that Transaction then an exception should be thrown.
Public methodGetQueue
Returns the queue for the given name
(Inherited from ISession.)
Public methodGetTopic
Returns the topic for the given name
(Inherited from ISession.)
Public methodRecover
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.
(Inherited from ISession.)
Public methodRollback
If this is a transactional session then rollback all message send and acknowledgements for producers and consumers in this session
(Inherited from ISession.)

Extension Methods

  NameDescription
Public Extension MethodCreateXmlMessage
Extension function to create a text message from an object. The object must be serializable to XML.
(Defined by SessionExtensions.)
Public Extension MethodDeleteDestination(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.)
Public Extension MethodDeleteDestination(String, DestinationType)Overloaded.
Extension function to delete the named destination by parsing the embedded type prefix.
(Defined by SessionExtensions.)
Public Extension MethodDeleteQueue
Extension function to delete the named destination by parsing the embedded type prefix.
(Defined by SessionExtensions.)
Public Extension MethodDeleteTopic
Extension function to delete the named destination by parsing the embedded type prefix.
(Defined by SessionExtensions.)
Public Extension MethodGetDestination(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.)
Public Extension MethodGetDestination(String, DestinationType)Overloaded.
Extension function to get the destination by parsing the embedded type prefix.
(Defined by SessionExtensions.)

Properties

  NameDescription
Public propertyAcknowledgementMode (Inherited from ISession.)
Public propertyConsumerTransformer
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.
(Inherited from ISession.)
Public propertyProducerTransformer
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.
(Inherited from ISession.)
Public propertyRequestTimeout (Inherited from ISession.)
Public propertyTransacted (Inherited from ISession.)

Events

  NameDescription
Public eventTransactionCommittedListener (Inherited from ISession.)
Public eventTransactionRolledBackListener (Inherited from ISession.)
Public eventTransactionStartedListener (Inherited from ISession.)

See Also