9 types derived from SynchronizationContext
System.Activities (3)
System\Activities\SynchronizationContextHelper.cs (1)
38
class WFDefaultSynchronizationContext :
SynchronizationContext
System\Activities\WorkflowApplication.cs (2)
3033
internal class SynchronousSynchronizationContext :
SynchronizationContext
4733
class PumpBasedSynchronizationContext :
SynchronizationContext
System.ServiceModel (1)
System\ServiceModel\ComIntegration\ComPlusSynchronizationContext.cs (1)
13
class ComPlusSynchronizationContext :
SynchronizationContext
System.ServiceModel.Activities (1)
System\ServiceModel\Activities\Dispatcher\WorkflowSynchronizationContext.cs (1)
9
class WorkflowSynchronizationContext :
SynchronizationContext
System.Web (1)
AspNetSynchronizationContextBase.cs (1)
18
internal abstract class AspNetSynchronizationContextBase :
SynchronizationContext
{
System.Windows.Forms (1)
winforms\Managed\System\WinForms\WindowsFormsSynchronizationContext.cs (1)
21
public sealed class WindowsFormsSynchronizationContext :
SynchronizationContext
, IDisposable {
WindowsBase (2)
Base\System\Windows\Threading\DispatcherSynchronizationContext.cs (1)
15
public sealed class DispatcherSynchronizationContext :
SynchronizationContext
Shared\MS\Internal\ReaderWriterLockWrapper.cs (1)
300
private class NonPumpingSynchronizationContext :
SynchronizationContext
4 instantiations of SynchronizationContext
mscorlib (2)
system\progress.cs (1)
119
internal static readonly SynchronizationContext DefaultContext = new
SynchronizationContext
();
system\threading\synchronizationcontext.cs (1)
342
return new
SynchronizationContext
();
System (1)
compmod\system\componentmodel\AsyncOperationManager.cs (1)
25
SynchronizationContext.SetSynchronizationContext(new
SynchronizationContext
());
System.Windows.Forms (1)
winforms\Managed\System\WinForms\WindowsFormsSynchronizationContext.cs (1)
170
AsyncOperationManager.SynchronizationContext = new
SynchronizationContext
();
161 references to SynchronizationContext
mscorlib (50)
system\progress.cs (6)
32
/// <see cref="System.Threading.
SynchronizationContext
"/> instance captured
39
private readonly
SynchronizationContext
m_synchronizationContext;
52
m_synchronizationContext =
SynchronizationContext
.CurrentNoFlow ?? ProgressStatics.DefaultContext;
61
/// Depending on the <see cref="System.Threading.
SynchronizationContext
"/> instance captured by
75
/// <see cref="System.Threading.
SynchronizationContext
"/> captured when the instance was constructed.
119
internal static readonly
SynchronizationContext
DefaultContext = new SynchronizationContext();
system\runtime\compilerservices\AsyncMethodBuilder.cs (4)
42
private
SynchronizationContext
m_synchronizationContext;
55
SynchronizationContext
sc =
SynchronizationContext
.CurrentNoFlow;
1006
internal static void ThrowAsync(Exception exception,
SynchronizationContext
targetContext)
system\runtime\compilerservices\YieldAwaitable.cs (3)
98
var
syncCtx =
SynchronizationContext
.CurrentNoFlow;
99
if (syncCtx != null && syncCtx.GetType() != typeof(
SynchronizationContext
))
system\threading\CancellationToken.cs (2)
341
SynchronizationContext
capturedSyncContext = null;
346
capturedSyncContext =
SynchronizationContext
.Current;
system\threading\CancellationTokenSource.cs (3)
635
Action<object> callback, object stateForCallback,
SynchronizationContext
targetSyncContext, ExecutionContext executionContext)
979
internal readonly
SynchronizationContext
TargetSyncContext;
984
Action<object> callback, object stateForCallback,
SynchronizationContext
targetSyncContext, ExecutionContext targetExecutionContext,
system\threading\executioncontext.cs (7)
501
private
SynchronizationContext
_syncContext;
502
private
SynchronizationContext
_syncContextNoFlow;
614
public
SynchronizationContext
SynchronizationContext { get { return IsNull ? null : m_ec.SynchronizationContext; } }
615
public
SynchronizationContext
SynchronizationContextNoFlow { get { return IsNull ? null : m_ec.SynchronizationContextNoFlow; } }
827
internal
SynchronizationContext
SynchronizationContext
842
internal
SynchronizationContext
SynchronizationContextNoFlow
1255
SynchronizationContext
syncCtxNew = null;
system\threading\synchronizationcontext.cs (9)
54
public virtual
SynchronizationContext
Create(object coreDispatcher) {return null;}
240
public static void SetSynchronizationContext(
SynchronizationContext
syncContext)
248
public static
SynchronizationContext
Current
257
internal static
SynchronizationContext
CurrentNoFlow
266
private static
SynchronizationContext
GetThreadLocalContext()
268
SynchronizationContext
context = null;
282
private static
SynchronizationContext
GetWinRTContext()
339
public virtual
SynchronizationContext
CreateCopy()
347
private static int InvokeWaitMethodHelper(
SynchronizationContext
syncContext, IntPtr[] waitHandles, bool waitAll, int millisecondsTimeout)
system\threading\Tasks\Task.cs (3)
2982
var
syncCtx =
SynchronizationContext
.CurrentNoFlow;
2983
if (syncCtx != null && syncCtx.GetType() != typeof(
SynchronizationContext
))
system\threading\Tasks\TaskContinuation.cs (6)
393
private readonly
SynchronizationContext
m_syncContext;
402
SynchronizationContext
context, Action action, bool flowExecutionContext, ref StackCrawlMark stackMark) :
417
m_syncContext ==
SynchronizationContext
.CurrentNoFlow)
652
var
ctx =
SynchronizationContext
.CurrentNoFlow;
653
if (ctx != null && ctx.GetType() != typeof(
SynchronizationContext
)) return false;
system\threading\Tasks\TaskScheduler.cs (7)
382
/// <see cref="System.Threading.
SynchronizationContext
.Post">Post</see> method
388
/// determined by <see cref="System.Threading.
SynchronizationContext
.Current">SynchronizationContext.Current</see>.
633
/// <see cref="System.Threading.
SynchronizationContext
.Post"/> on the <see cref="T:System.Threading.SynchronizationContext"/>
638
private
SynchronizationContext
m_synchronizationContext;
646
SynchronizationContext
synContext =
SynchronizationContext
.Current;
681
if (
SynchronizationContext
.Current == m_synchronizationContext)
System (10)
compmod\microsoft\win32\SystemEvents.cs (1)
1614
private
SynchronizationContext
_syncContext; // the context that we'll use to fire against.
compmod\system\componentmodel\AsyncOperation.cs (4)
15
private
SynchronizationContext
syncContext;
23
private AsyncOperation(object userSuppliedState,
SynchronizationContext
syncContext)
48
public
SynchronizationContext
SynchronizationContext
107
internal static AsyncOperation CreateOperation(object userSuppliedState,
SynchronizationContext
syncContext)
compmod\system\componentmodel\AsyncOperationManager.cs (5)
22
public static
SynchronizationContext
SynchronizationContext {
24
if (
SynchronizationContext
.Current == null) {
25
SynchronizationContext
.SetSynchronizationContext(new SynchronizationContext());
28
return
SynchronizationContext
.Current;
42
SynchronizationContext
.SetSynchronizationContext(value);
System.Activities (17)
System\Activities\AsyncInvokeContext.cs (2)
16
SynchronizationContext
syncContext =
SynchronizationContext
.Current ?? WorkflowApplication.SynchronousSynchronizationContext.Value;
System\Activities\AsyncInvokeOperation.cs (2)
16
public AsyncInvokeOperation(
SynchronizationContext
syncContext)
23
SynchronizationContext
SyncContext
System\Activities\Hosting\WorkflowInstance.cs (2)
33
SynchronizationContext
syncContext;
104
public
SynchronizationContext
SynchronizationContext
System\Activities\Runtime\ActivityExecutor.cs (1)
2463
public void Open(
SynchronizationContext
synchronizationContext)
System\Activities\Runtime\Scheduler.cs (2)
26
SynchronizationContext
synchronizationContext;
273
public void Open(
SynchronizationContext
synchronizationContext)
System\Activities\SynchronizationContextHelper.cs (3)
14
public static
SynchronizationContext
GetDefaultSynchronizationContext()
23
public static
SynchronizationContext
CloneSynchronizationContext(
SynchronizationContext
context)
System\Activities\WorkflowApplication.cs (4)
1174
static WorkflowApplication CreateInstance(Activity activity, IDictionary<string, object> inputs, WorkflowInstanceExtensionManager extensions,
SynchronizationContext
syncContext, Action invokeCompletedCallback)
1238
static WorkflowApplication StartInvoke(Activity activity, IDictionary<string, object> inputs, WorkflowInstanceExtensionManager extensions,
SynchronizationContext
syncContext, Action invokeCompletedCallback, AsyncInvokeContext invokeContext)
1291
internal static IAsyncResult BeginInvoke(Activity activity, IDictionary<string, object> inputs, WorkflowInstanceExtensionManager extensions, TimeSpan timeout,
SynchronizationContext
syncContext, AsyncInvokeContext invokeContext, AsyncCallback callback, object state)
3072
public InvokeAsyncResult(Activity activity, IDictionary<string, object> inputs, WorkflowInstanceExtensionManager extensions, TimeSpan timeout,
SynchronizationContext
syncContext, AsyncInvokeContext invokeContext, AsyncCallback callback, object state)
System\Activities\WorkflowInvoker.cs (1)
407
IAsyncResult result = WorkflowApplication.BeginInvoke(this.workflow, inputs, this.extensions, timeout,
SynchronizationContext
.Current, context, invokeCallback, context);
System.Net (1)
net\UiSynchronizationContext.cs (1)
17
public static
SynchronizationContext
Current { get; set; }
System.ServiceModel (18)
System\ServiceModel\Channels\PeerFlooder.cs (3)
142
SynchronizationContext
syncContext = ThreadBehavior.GetCurrentSynchronizationContext();
143
SynchronizationContext
.SetSynchronizationContext(null);
155
SynchronizationContext
.SetSynchronizationContext(syncContext);
System\ServiceModel\Channels\PeerNodeImplementation.cs (2)
40
SynchronizationContext
messagePropagationFilterContext;
948
SynchronizationContext
context = messagePropagationFilterContext;
System\ServiceModel\Dispatcher\DispatchRuntime.cs (2)
49
SynchronizationContext
synchronizationContext;
479
public
SynchronizationContext
SynchronizationContext
System\ServiceModel\Dispatcher\ThreadBehavior.cs (7)
18
readonly
SynchronizationContext
context;
72
SynchronizationContext
syncContext = GetSyncContext(rpc.InstanceContext);
94
SynchronizationContext
GetSyncContext(InstanceContext instanceContext)
97
SynchronizationContext
syncContext = instanceContext.SynchronizationContext ?? this.context;
111
SynchronizationContext
syncContext = GetSyncContext(resume.GetMessageInstanceContext());
138
internal static
SynchronizationContext
GetCurrentSynchronizationContext()
144
return
SynchronizationContext
.Current;
System\ServiceModel\InstanceContext.cs (2)
32
SynchronizationContext
synchronizationContext;
258
public
SynchronizationContext
SynchronizationContext
System\ServiceModel\PeerNode.cs (2)
16
SynchronizationContext
synchronizationContext = null;
43
SynchronizationContext
context = synchronizationContext;
System.ServiceModel.Activities (2)
System\ServiceModel\Activities\Dispatcher\WorkflowServiceInstance.cs (1)
316
SynchronizationContext
synchronizationContext, WorkflowServiceHost serviceHost, DynamicUpdateMap updateMap = null)
System\ServiceModel\Activities\Dispatcher\WorkflowSynchronizationContext.cs (1)
31
public override
SynchronizationContext
CreateCopy()
System.ServiceModel.Discovery (4)
System\ServiceModel\Discovery\DiscoveryClientChannelBase.cs (4)
325
SynchronizationContext
originalSynchronizationContext =
SynchronizationContext
.Current;
328
SynchronizationContext
.SetSynchronizationContext(null);
349
SynchronizationContext
.SetSynchronizationContext(originalSynchronizationContext);
System.Web (4)
AspNetSynchronizationContext.cs (1)
82
public override
SynchronizationContext
CreateCopy() {
LegacyAspNetSynchronizationContext.cs (1)
136
public override
SynchronizationContext
CreateCopy() {
ThreadContext.cs (1)
26
private
SynchronizationContext
_originalSynchronizationContext;
UI\Page.cs (1)
5238
AspNetSynchronizationContext syncContext =
SynchronizationContext
.Current as AspNetSynchronizationContext;
System.Windows.Forms (16)
winforms\Managed\System\WinForms\AxHost.cs (4)
3811
SynchronizationContext
context =
SynchronizationContext
.Current;
3900
SynchronizationContext
context =
SynchronizationContext
.Current;
winforms\Managed\System\WinForms\Control.cs (7)
7398
if (
SynchronizationContext
.Current == null) {
7402
tme.syncContext =
SynchronizationContext
.Current;
7418
SynchronizationContext
oldContext =
SynchronizationContext
.Current;
7421
SynchronizationContext
.SetSynchronizationContext(tme.syncContext);
7426
SynchronizationContext
.SetSynchronizationContext(oldContext);
20054
internal
SynchronizationContext
syncContext = null;
winforms\Managed\System\WinForms\WindowsFormsSynchronizationContext.cs (5)
33
private static
SynchronizationContext
previousSyncContext;
101
public override
SynchronizationContext
CreateCopy() {
127
if (
SynchronizationContext
.Current == null) {
137
SynchronizationContext
currentContext = AsyncOperationManager.SynchronizationContext;
139
if (currentContext == null || currentContext.GetType() == typeof(
SynchronizationContext
)) {
System.WorkflowServices (10)
System\ServiceModel\Dispatcher\WorkflowOperationAsyncResult.cs (4)
192
SynchronizationContext
synchronizationContext = callbackState.SynchronizationContext;
328
SynchronizationContext
synchronizationContext;
335
SynchronizationContext
synchronizationContext,
354
public
SynchronizationContext
SynchronizationContext
System\Workflow\Runtime\Hosting\SynchronizationContextWorkflowSchedulerService.cs (6)
17
SynchronizationContext
syncContext;
75
internal void SetSynchronizationContext(
SynchronizationContext
synchronizationContext)
85
public static void Post(
SynchronizationContext
synchronizationContext, SendOrPostCallback callback, object state)
117
SynchronizationContext
synchronizationContext;
119
public PostCallbackState(
SynchronizationContext
synchronizationContext, SendOrPostCallback callback, object callbackState)
142
public
SynchronizationContext
SynchronizationContext
WindowsBase (29)
Base\System\Windows\Threading\Dispatcher.cs (17)
654
SynchronizationContext
oldSynchronizationContext =
SynchronizationContext
.Current;
674
SynchronizationContext
.SetSynchronizationContext(newSynchronizationContext);
681
SynchronizationContext
.SetSynchronizationContext(oldSynchronizationContext);
824
SynchronizationContext
oldSynchronizationContext =
SynchronizationContext
.Current;
844
SynchronizationContext
.SetSynchronizationContext(newSynchronizationContext);
850
SynchronizationContext
.SetSynchronizationContext(oldSynchronizationContext);
1425
SynchronizationContext
oldSynchronizationContext =
SynchronizationContext
.Current;
1445
SynchronizationContext
.SetSynchronizationContext(newSynchronizationContext);
1451
SynchronizationContext
.SetSynchronizationContext(oldSynchronizationContext);
2311
SynchronizationContext
oldSyncContext = null;
2312
SynchronizationContext
newSyncContext = null;
2319
oldSyncContext =
SynchronizationContext
.Current;
2321
SynchronizationContext
.SetSynchronizationContext(newSyncContext);
2346
SynchronizationContext
.SetSynchronizationContext(oldSyncContext);
Base\System\Windows\Threading\DispatcherOperation.cs (4)
537
SynchronizationContext
oldSynchronizationContext =
SynchronizationContext
.Current;
560
SynchronizationContext
.SetSynchronizationContext(newSynchronizationContext);
590
SynchronizationContext
.SetSynchronizationContext(oldSynchronizationContext);
Base\System\Windows\Threading\DispatcherSynchronizationContext.cs (2)
108
return
SynchronizationContext
.WaitHelper(waitHandles, waitAll, millisecondsTimeout);
115
public override
SynchronizationContext
CreateCopy()
Shared\MS\Internal\ReaderWriterLockWrapper.cs (6)
170
SynchronizationContext
oldSynchronizationContext =
SynchronizationContext
.Current;
185
SynchronizationContext
.SetSynchronizationContext(nonPumpingSynchronizationContext);
193
SynchronizationContext
.SetSynchronizationContext(oldSynchronizationContext);
308
public
SynchronizationContext
Parent { get; set; }
343
public override
SynchronizationContext
CreateCopy()