1 write to _cache
System.Data (1)
fx\src\data\System\Data\SqlClient\TdsParserSessionPool.cs (1)
43
_cache
= new List<TdsParserStateObject>();
19 references to _cache
System.Data (19)
fx\src\data\System\Data\SqlClient\TdsParserSessionPool.cs (19)
72
lock(
_cache
) {
78
for (int i =
_cache
.Count - 1; i >= 0 ; i--) {
79
TdsParserStateObject session =
_cache
[i];
104
for (int i = 0; i <
_cache
.Count; i++) {
105
TdsParserStateObject session =
_cache
[i];
120
lock(
_cache
) {
131
for (int i = 0; i <
_cache
.Count; i++) {
132
if (
_cache
[i] != null) {
133
if (
_cache
[i].IsOrphaned) {
134
_cache
[i].Dispose();
138
_cache
[i].DecrementPendingCallbacks(false);
142
_cache
.Clear();
152
lock (
_cache
) {
171
_cache
.Add(session);
172
_cachedCount =
_cache
.Count;
191
lock (
_cache
) {
213
bool removed =
_cache
.Remove(session);
215
_cachedCount =
_cache
.Count;
229
_cache
.Count);