public DbConnect(DbConnection oracleConnection, string connectionId, DbConnectionMgr connectionMgr) { _dbConnection = oracleConnection; _connectionId = connectionId; _connectionMgr = connectionMgr; _startTick = DateTime.UtcNow.Ticks; }
private void Dispose(bool disposing) { if (!disposing) { return; } if (_dbConnection != null) { using (_dbConnection) { } _dbConnection = null; } if (_connectionMgr == null) { return; } _connectionMgr.ConnectionDisposed(_connectionId, _startTick.GetMillisecondDifference()); _connectionMgr = null; }