CloseConnections() static private method

Closes all database connections associated with the session.
static private CloseConnections ( ILog log ) : void
log ILog
return void
Beispiel #1
0
        /// <summary>
        /// Calls must handle concurrency control
        /// </summary>
        static void Rollback(ILog log)
        {
            // mark the session as ended before doing any rollback work
            Session.ID = Guid.Empty;
            Session.IsRollbackPending = false;
            Session.CloseConnections(log);

            log.Write("Aborting transaction");
            Session.Transaction.Rollback();
            Session.Transaction.Dispose();
            Session.Transaction = null;
        }