3 writes to _cachedCount
System.Data (3)
fx\src\data\System\Data\SqlClient\TdsParserSessionPool.cs (3)
143
_cachedCount
= 0;
172
_cachedCount
= _cache.Count;
215
_cachedCount
= _cache.Count;
7 references to _cachedCount
System.Data (7)
fx\src\data\System\Data\SqlClient\TdsParserSessionPool.cs (7)
69
Bid.ScopeEnter(out hscp, "<sc.TdsParserSessionPool.Deactivate|ADV> %d# deactivating cachedCount=%d\n", ObjectID,
_cachedCount
);
117
Bid.Trace("<sc.TdsParserSessionPool.Dispose|ADV> %d# disposing cachedCount=%d\n", ObjectID,
_cachedCount
);
194
Debug.Assert(
_cachedCount
== 0, "SessionPool is disposed, but there are still sessions in the cache?");
200
Bid.Trace("<sc.TdsParserSessionPool.PutSession|ADV> %d# keeping session %d cachedCount=%d\n", ObjectID, session.ObjectID,
_cachedCount
);
210
Bid.Trace("<sc.TdsParserSessionPool.PutSession|ADV> %d# disposing session %d cachedCount=%d\n", ObjectID, session.ObjectID,
_cachedCount
);
228
_cachedCount
,
234
return
_cachedCount
- _freeStateObjectCount;