9 references to TryEnter
mscorlib (2)
system\threading\monitor.cs (2)
101
TryEnter
(obj, 0, ref lockTaken);
128
TryEnter
(obj, millisecondsTimeout, ref lockTaken);
System.Data (3)
fx\src\data\System\Data\ProviderBase\DbReferenceCollection.cs (1)
227
Monitor.
TryEnter
(_itemLock, LockPollTime, ref lockObtained);
fx\src\data\System\Data\SqlClient\SqlInternalConnectionTds.cs (1)
242
Monitor.
TryEnter
(semaphore, timeout, ref hasMonitor); // semaphore is used as lock object, no relation to SemaphoreSlim.Wait/Release methods
fx\src\data\System\Data\SqlClient\TdsParserStateObject.cs (1)
578
Monitor.
TryEnter
(this, _waitForCancellationLockPollTimeout, ref hasLock);
System.Transactions (4)
System\Transactions\VolatileEnlistmentMultiplexing.cs (4)
119
System.Threading.Monitor.
TryEnter
(demux.transaction, 250, ref tookLock);
179
System.Threading.Monitor.
TryEnter
(demux.transaction, 250, ref tookLock);
239
System.Threading.Monitor.
TryEnter
(demux.transaction, 250, ref tookLock);
299
System.Threading.Monitor.
TryEnter
(demux.transaction, 250, ref tookLock);