25 references to IsThreadPoolThread
mscorlib (2)
system\threading\Tasks\ConcurrentExclusiveSchedulerPair.cs (1)
581if (isDefaultScheduler && taskWasPreviouslyQueued && !Thread.CurrentThread.IsThreadPoolThread)
system\threading\Tasks\TaskContinuation.cs (1)
519(TaskScheduler.InternalCurrent == m_scheduler || Thread.CurrentThread.IsThreadPoolThread);
System (5)
net\System\Net\_Connection.cs (3)
1530else if (Thread.CurrentThread.IsThreadPoolThread) 1595else if (Thread.CurrentThread.IsThreadPoolThread) 3574if (Thread.CurrentThread.IsThreadPoolThread)
net\System\Net\Sockets\Socket.cs (2)
2958(Thread.CurrentThread.IsThreadPoolThread || SettingsSectionInternal.Section.AlwaysUseCompletionPortsForConnect || m_IsDisconnected); 5333(Thread.CurrentThread.IsThreadPoolThread || SettingsSectionInternal.Section.AlwaysUseCompletionPortsForAccept || m_IsDisconnected);
System.Data (1)
fx\src\data\System\Data\ProviderBase\DbConnectionPool.cs (1)
1070Debug.Assert(!Thread.CurrentThread.IsThreadPoolThread, "This thread may block for a long time. Threadpool threads should not be used.");
System.ServiceModel (10)
System\ServiceModel\Channels\Msmq4PoisonHandler.cs (1)
68if (Thread.CurrentThread.IsThreadPoolThread)
System\ServiceModel\Channels\PipeConnection.cs (1)
2225if (!Thread.CurrentThread.IsThreadPoolThread)
System\ServiceModel\Channels\ReliableChannelListener.cs (1)
773if (Thread.CurrentThread.IsThreadPoolThread)
System\ServiceModel\Channels\ReliableDuplexSessionChannel.cs (1)
1588if (Thread.CurrentThread.IsThreadPoolThread)
System\ServiceModel\Channels\ReliableMessagingHelpers.cs (1)
965else if (Thread.CurrentThread.IsThreadPoolThread)
System\ServiceModel\Channels\ReliableOutputSessionChannel.cs (1)
1015if (Thread.CurrentThread.IsThreadPoolThread)
System\ServiceModel\Channels\SharedHttpTransportManager.cs (1)
573if (Thread.CurrentThread.IsThreadPoolThread)
System\ServiceModel\Channels\SocketConnection.cs (2)
1809if (Thread.CurrentThread.IsThreadPoolThread) 2188if (!Thread.CurrentThread.IsThreadPoolThread)
System\ServiceModel\Dispatcher\ChannelHandler.cs (1)
621if (Thread.CurrentThread.IsThreadPoolThread)
System.ServiceModel.Channels (4)
System\ServiceModel\Channels\UdpSocketReceiveManager.cs (4)
114if (Thread.CurrentThread.IsThreadPoolThread) 180Fx.Assert(Thread.CurrentThread.IsThreadPoolThread, "Receive loop is running on a non-threadpool thread. If this thread disappears while a completion port operation is outstanding, then the operation will get canceled."); 306if (StartAsyncReceive(socket) && !Thread.CurrentThread.IsThreadPoolThread) 316jumpThreads = !Thread.CurrentThread.IsThreadPoolThread;
System.Web (3)
HttpApplication.cs (1)
2283if (Thread.CurrentThread.IsThreadPoolThread) {
UI\LegacyPageAsyncTaskManager.cs (1)
333if (Thread.CurrentThread.IsThreadPoolThread) {
UI\Page.cs (1)
5964if (Thread.CurrentThread.IsThreadPoolThread) {