25 references to IsThreadPoolThread
mscorlib (2)
system\threading\Tasks\ConcurrentExclusiveSchedulerPair.cs (1)
581
if (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)
1530
else if (Thread.CurrentThread.
IsThreadPoolThread
)
1595
else if (Thread.CurrentThread.
IsThreadPoolThread
)
3574
if (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)
1070
Debug.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)
68
if (Thread.CurrentThread.
IsThreadPoolThread
)
System\ServiceModel\Channels\PipeConnection.cs (1)
2225
if (!Thread.CurrentThread.
IsThreadPoolThread
)
System\ServiceModel\Channels\ReliableChannelListener.cs (1)
773
if (Thread.CurrentThread.
IsThreadPoolThread
)
System\ServiceModel\Channels\ReliableDuplexSessionChannel.cs (1)
1588
if (Thread.CurrentThread.
IsThreadPoolThread
)
System\ServiceModel\Channels\ReliableMessagingHelpers.cs (1)
965
else if (Thread.CurrentThread.
IsThreadPoolThread
)
System\ServiceModel\Channels\ReliableOutputSessionChannel.cs (1)
1015
if (Thread.CurrentThread.
IsThreadPoolThread
)
System\ServiceModel\Channels\SharedHttpTransportManager.cs (1)
573
if (Thread.CurrentThread.
IsThreadPoolThread
)
System\ServiceModel\Channels\SocketConnection.cs (2)
1809
if (Thread.CurrentThread.
IsThreadPoolThread
)
2188
if (!Thread.CurrentThread.
IsThreadPoolThread
)
System\ServiceModel\Dispatcher\ChannelHandler.cs (1)
621
if (Thread.CurrentThread.
IsThreadPoolThread
)
System.ServiceModel.Channels (4)
System\ServiceModel\Channels\UdpSocketReceiveManager.cs (4)
114
if (Thread.CurrentThread.
IsThreadPoolThread
)
180
Fx.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.");
306
if (StartAsyncReceive(socket) && !Thread.CurrentThread.
IsThreadPoolThread
)
316
jumpThreads = !Thread.CurrentThread.
IsThreadPoolThread
;
System.Web (3)
HttpApplication.cs (1)
2283
if (Thread.CurrentThread.
IsThreadPoolThread
) {
UI\LegacyPageAsyncTaskManager.cs (1)
333
if (Thread.CurrentThread.
IsThreadPoolThread
) {
UI\Page.cs (1)
5964
if (Thread.CurrentThread.
IsThreadPoolThread
) {