Apache.NMS.ActiveMQ.TransactionContext.Commit C# (CSharp) Method

Commit() public method

public Commit ( ) : void
return void
        public void Commit()
        {
            if(InTransaction)
            {
                this.BeforeEnd();

                if(Tracer.IsDebugEnabled)
                {
                    Tracer.Debug("Commit: "  + this.transactionId +
                                 " syncCount: " +
                                 (synchronizations != null ? synchronizations.Count : 0));
                }

                TransactionInfo info = new TransactionInfo();
                info.ConnectionId = this.session.Connection.ConnectionId;
                info.TransactionId = transactionId;
                info.Type = (int) TransactionType.CommitOnePhase;

                this.transactionId = null;
                this.session.Connection.SyncRequest(info);

                this.AfterCommit();
            }
        }

Same methods

TransactionContext::Commit ( Enlistment enlistment ) : void