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();
}
}