13 references to CreateCopy
mscorlib (4)
system\threading\overlapped.cs (1)
129
using (ExecutionContext executionContext = helper._executionContext.
CreateCopy
())
system\threading\Tasks\Task.cs (1)
1797
return capturedContext.
CreateCopy
();
system\threading\threadpool.cs (1)
1337
using (ExecutionContext executionContext = helper._executionContext.
CreateCopy
())
system\threading\timer.cs (1)
707
m_executionContext.IsPreAllocatedDefault ? m_executionContext : m_executionContext.
CreateCopy
())
System (9)
net\System\Net\_ContextAwareResult.cs (4)
157
return context.
CreateCopy
();
177
return context == null ? null : context.
CreateCopy
();
399
_Context = cachedContext.
CreateCopy
();
461
ExecutionContext.Run((_Flags & StateFlags.ThreadSafeContextCopy) != 0 ? context.
CreateCopy
() : context,
net\System\Net\_TLSstream.cs (1)
491
ExecutionContext.Run(_ExecutionContext.
CreateCopy
(), new ContextCallback(CallProcessAuthentication), handshakeResult);
net\System\Net\NetworkInformation\NetworkAddressChange.cs (2)
122
ExecutionContext.Run(context.
CreateCopy
(), s_RunHandlerCallback, handler);
224
ExecutionContext.Run(context.
CreateCopy
(), s_runHandlerCallback, handler);
net\System\Net\Sockets\Socket.cs (1)
9046
m_ContextCopy = m_Context.
CreateCopy
();
sys\system\threading\Barrier.cs (1)
794
m_ownerThreadContext = m_ownerThreadContext.
CreateCopy
(); // create a copy for the next run