2 writes to _activateCount
System.Data (2)
fx\src\data\System\Data\SqlClient\TdsParserStateObject.cs (2)
566
int result = Interlocked.Increment(ref
_activateCount
); // must have non-zero activation count for reclaimation to work too.
799
int result = Interlocked.Decrement(ref
_activateCount
); // must have non-zero activation count for reclaimation to work too.
4 references to _activateCount
System.Data (4)
fx\src\data\System\Data\SqlClient\TdsParserStateObject.cs (4)
355
Debug.Assert((0 ==
_activateCount
&& !_owner.IsAlive) // in pool
356
|| (1 ==
_activateCount
&& _owner.IsAlive && _owner.Target != null)
357
|| (1 ==
_activateCount
&& !_owner.IsAlive), "Unknown state on TdsParserStateObject.IsOrphaned!");
358
return (0 !=
_activateCount
&& !_owner.IsAlive);