internal void MakeNonPooledObject(object owningObject, System.Data.ProviderBase.DbConnectionPoolCounters performanceCounters) { this._connectionPool = null; this._performanceCounters = performanceCounters; this._owningObject.Target = owningObject; this._pooledCount = -1; }
protected DbConnectionFactory(System.Data.ProviderBase.DbConnectionPoolCounters performanceCounters) { this._objectID = Interlocked.Increment(ref _objectTypeCount); this._performanceCounters = performanceCounters; this._connectionPoolGroups = new Dictionary <string, System.Data.ProviderBase.DbConnectionPoolGroup>(); this._poolsToRelease = new List <System.Data.ProviderBase.DbConnectionPool>(); this._poolGroupsToRelease = new List <System.Data.ProviderBase.DbConnectionPoolGroup>(); this._pruningTimer = this.CreatePruningTimer(); }
protected DbConnectionFactory(System.Data.ProviderBase.DbConnectionPoolCounters performanceCounters) { this._objectID = Interlocked.Increment(ref _objectTypeCount); this._performanceCounters = performanceCounters; this._connectionPoolGroups = new Dictionary<string, System.Data.ProviderBase.DbConnectionPoolGroup>(); this._poolsToRelease = new List<System.Data.ProviderBase.DbConnectionPool>(); this._poolGroupsToRelease = new List<System.Data.ProviderBase.DbConnectionPoolGroup>(); this._pruningTimer = this.CreatePruningTimer(); }
public virtual void Dispose() { this._connectionPool = null; this._performanceCounters = null; this._connectionIsDoomed = true; this._enlistedTransactionOriginal = null; Transaction transaction = Interlocked.Exchange <Transaction>(ref this._enlistedTransaction, null); if (transaction != null) { transaction.Dispose(); } }
internal void MakePooledConnection(System.Data.ProviderBase.DbConnectionPool connectionPool) { this._createTime = DateTime.UtcNow; this._connectionPool = connectionPool; this._performanceCounters = connectionPool.PerformanceCounters; }
internal void MakeNonPooledObject(object owningObject, System.Data.ProviderBase.DbConnectionPoolCounters performanceCounters) { this._connectionPool = null; this._performanceCounters = performanceCounters; this._owningObject.Target = owningObject; this._pooledCount = -1; }
public virtual void Dispose() { this._connectionPool = null; this._performanceCounters = null; this._connectionIsDoomed = true; this._enlistedTransactionOriginal = null; Transaction transaction = Interlocked.Exchange<Transaction>(ref this._enlistedTransaction, null); if (transaction != null) { transaction.Dispose(); } }
internal void MakePooledConnection(System.Data.ProviderBase.DbConnectionPool connectionPool) { this._createTime = DateTime.UtcNow; this._connectionPool = connectionPool; this._performanceCounters = connectionPool.PerformanceCounters; }