Show / Hide Table of Contents

# Class TransactionState

##### Inheritance

System.Object
TransactionState

##### 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)

###### Namespace: Apache.NMS.ActiveMQ.State

###### Assembly: Apache.NMS.ActiveMQ.dll

##### Syntax

    public class TransactionState

### Constructors

| Improve this Doc View Source

#### TransactionState(TransactionId)

##### Declaration

    public TransactionState(TransactionId id)

##### Parameters

Type | Name | Description
--- | --- | ---
TransactionId | id |

### Properties

| Improve this Doc View Source

#### Commands

##### Declaration

    public List<Command> Commands { get; }

##### Property Value

Type | Description
--- | ---
System.Collections.Generic.List<Command> |

| Improve this Doc View Source

#### Id

##### Declaration

    public TransactionId Id { get; }

##### Property Value

Type | Description
--- | ---
TransactionId |

| Improve this Doc View Source

#### Prepared

##### Declaration

    public bool Prepared { get; set; }

##### Property Value

Type | Description
--- | ---
System.Boolean |

| Improve this Doc View Source

#### PreparedResult

##### Declaration

    public int PreparedResult { get; set; }

##### Property Value

Type | Description
--- | ---
System.Int32 |

| Improve this Doc View Source

#### ProducerStates

##### Declaration

    public AtomicCollection<ProducerState> ProducerStates { get; }

##### Property Value

Type | Description
--- | ---
AtomicCollection<ProducerState> |

### Methods

| Improve this Doc View Source

#### AddCommand(Command)

##### Declaration

    public void AddCommand(Command operation)

##### Parameters

Type | Name | Description
--- | --- | ---
Command | operation |

| Improve this Doc View Source

#### AddProducer(ProducerState)

##### Declaration

    public void AddProducer(ProducerState producer)

##### Parameters

Type | Name | Description
--- | --- | ---
ProducerState | producer |

| Improve this Doc View Source

#### Shutdown()

##### Declaration

    public void Shutdown()

| Improve this Doc View Source

#### ToString()

##### Declaration

    public override string ToString()

##### Returns

Type | Description
--- | ---
System.String |

##### Overrides

System.Object.ToString()