19 references to IsEntered
mscorlib (10)
system\diagnostics\eventing\eventsource.cs (6)
3017
Contract.Assert(Monitor.
IsEntered
(EventListener.EventListenersLock));
4484
Contract.Assert(Monitor.
IsEntered
(EventListener.EventListenersLock));
5261
Contract.Assert(Monitor.
IsEntered
(EventListener.EventListenersLock));
5329
Contract.Assert(Monitor.
IsEntered
(EventListener.EventListenersLock));
5577
Contract.Assert(Monitor.
IsEntered
(EventListener.EventListenersLock));
5678
Contract.Assert(Monitor.
IsEntered
(EventListener.EventListenersLock));
system\threading\SemaphoreSlim.cs (3)
642
Contract.Assert(Monitor.
IsEntered
(m_lockObj), "Requires the lock be held");
672
Contract.Assert(Monitor.
IsEntered
(m_lockObj), "Requires the lock be held");
698
Contract.Assert(Monitor.
IsEntered
(m_lockObj), "Requires the lock be held");
system\threading\Tasks\ConcurrentExclusiveSchedulerPair.cs (1)
758
Contract.Assert(Monitor.
IsEntered
(syncObj) == held, "The locking scheme was not correctly followed.");
System (8)
net\System\Net\NetworkInformation\NetworkAddressChange.cs (2)
110
Debug.Assert(!Monitor.
IsEntered
(s_globalLock), "Should not invoke user callback while holding globalLock");
212
Debug.Assert(!Monitor.
IsEntered
(s_globalLock), "Should not invoke user callback while holding globalLock");
sys\system\collections\concurrent\ConcurrentBag.cs (6)
345
Contract.Assert(Monitor.
IsEntered
(GlobalListsLock));
764
Contract.Assert(!Monitor.
IsEntered
(GlobalListsLock));
798
Contract.Assert(Monitor.
IsEntered
(GlobalListsLock));
844
Contract.Assert(Monitor.
IsEntered
(GlobalListsLock));
867
Contract.Assert(Monitor.
IsEntered
(GlobalListsLock));
889
Contract.Assert(Monitor.
IsEntered
(GlobalListsLock));
System.Data (1)
fx\src\data\System\Data\SqlClient\SqlInternalConnectionTds.cs (1)
288
return Monitor.
IsEntered
(semaphore) || semaphore.CurrentCount == 0;