Class NetTxSession
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Apache.NMS.ActiveMQ
Assembly: Apache.NMS.ActiveMQ.dll
Syntax
public sealed class NetTxSession : Session, IDispatcher, INetTxSession, ISession, IDisposable
Constructors
| Improve this Doc View SourceNetTxSession(Connection, SessionId)
Declaration
public NetTxSession(Connection connection, SessionId id)
Parameters
Type | Name | Description |
---|---|---|
Connection | connection | |
SessionId | id |
Properties
| Improve this Doc View SourceEnlistsMsDtcNativeResource
Declaration
public bool EnlistsMsDtcNativeResource { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
IsAutoAcknowledge
Declaration
public override bool IsAutoAcknowledge { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Overrides
| Improve this Doc View SourceIsTransacted
Reports Transacted whenever there is an Ambient Transaction or the internal TransactionContext is still involed in a .NET Transaction beyond the lifetime of an ambient transaction (can happen during a scoped transaction disposing without Complete being called and a Rollback is in progress.)
Declaration
public override bool IsTransacted { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Overrides
Methods
| Improve this Doc View SourceClose()
Declaration
public override void Close()
Overrides
| Improve this Doc View SourceCreateTransactionContext()
Declaration
protected override TransactionContext CreateTransactionContext()
Returns
Type | Description |
---|---|
TransactionContext |
Overrides
| Improve this Doc View SourceEnlist(Transaction)
Manually Enlists in the given Transaction. This can be used to when the client is using the Session in Asynchronous listener mode since the Session cannot atuomatically join in this case as there is no Ambient transaction in the Message Dispatch thread. This also allows for clients to use the explicit exception model when necessary.
Declaration
public void Enlist(Transaction tx)
Parameters
Type | Name | Description |
---|---|---|
System.Transactions.Transaction | tx |
Implements
Apache.NMS.INetTxSession
Apache.NMS.ISession
System.IDisposable