public void Commit()
{
AssertNotDisposed();
try {
this.OnEvent(new SessionEvent(SessionEventType.BeforeCommit));
if (Transaction != null) {
try {
Transaction.Commit();
} finally {
DisposeTransaction();
}
}
} finally {
this.OnEvent(new SessionEvent(SessionEventType.AfterCommit));
}
}