1 write to _denyExecutionSynchronizationContext
System.Windows.Forms.UI.IntegrationTests (1)
Infra\ControlTestBase.cs (1)
77
_denyExecutionSynchronizationContext
= new DenyExecutionSynchronizationContext(SynchronizationContext.Current!);
5 references to _denyExecutionSynchronizationContext
System.Windows.Forms.UI.IntegrationTests (5)
Infra\ControlTestBase.cs (5)
78
JoinableTaskContext = new JoinableTaskContext(
_denyExecutionSynchronizationContext
.MainThread,
_denyExecutionSynchronizationContext
);
101
if (
_denyExecutionSynchronizationContext
is not null)
103
SynchronizationContext.SetSynchronizationContext(
_denyExecutionSynchronizationContext
.UnderlyingContext);
104
_denyExecutionSynchronizationContext
.ThrowIfSwitchOccurred();