3 writes to _pooledCount
System.Data (3)
fx\src\data\System\Data\ProviderBase\DbConnectionInternal.cs (3)
633
_pooledCount
= -1;
722
_pooledCount
++;
747
_pooledCount
--;
13 references to _pooledCount
System.Data (13)
fx\src\data\System\Data\ProviderBase\DbConnectionInternal.cs (13)
272
bool value = !IsTxRootWaitingForTxEnd && (
_pooledCount
< 1) && !_owningObject.IsAlive;
279
Debug.Assert(
_pooledCount
<= 1 &&
_pooledCount
>= -1, "Pooled count for object is invalid");
280
return (
_pooledCount
== 1);
543
if (1 ==
_pooledCount
) {
559
else if (-1 ==
_pooledCount
&& !_owningObject.IsAlive) {
715
if (0 !=
_pooledCount
) {
720
Bid.PoolerTrace("<prov.DbConnectionInternal.PrePush|RES|CPOOL> %d#, Preparing to push into pool, owning connection %d#, pooledCount=%d\n", ObjectID, 0,
_pooledCount
);
750
Bid.PoolerTrace("<prov.DbConnectionInternal.PostPop|RES|CPOOL> %d#, Preparing to pop from pool, owning connection %d#, pooledCount=%d\n", ObjectID, 0,
_pooledCount
);
754
if (0 !=
_pooledCount
) {
758
else if (-1 !=
_pooledCount
) {
795
Bid.Trace("<prov.DbConnectionInternal.DetachTransaction|RES|CPOOL> %d#, Transaction Completed. (pooledCount=%d)\n", ObjectID,
_pooledCount
);
830
Bid.Trace("<prov.DbConnectionInternal.TransactionCompletedEvent|RES|CPOOL> %d#, Transaction Completed. (pooledCount=%d)\n", ObjectID,
_pooledCount
);