11 instantiations of WindowsFormsSynchronizationContext
Microsoft.VisualBasic.Forms (1)
Microsoft\VisualBasic\ApplicationServices\WindowsFormsApplicationBase.vb (1)
813AsyncOperationManager.SynchronizationContext = New WindowsFormsSynchronizationContext()
System.Windows.Forms (2)
System\Windows\Forms\WindowsFormsSynchronizationContext.cs (2)
93=> new WindowsFormsSynchronizationContext(_controlToSendTo, DestinationThread); 147AsyncOperationManager.SynchronizationContext = new WindowsFormsSynchronizationContext();
System.Windows.Forms.Tests (8)
System\Windows\Forms\WindowsFormsSynchronizationContextTests.cs (8)
13WindowsFormsSynchronizationContext context = new(); 37WindowsFormsSynchronizationContext context = new(); 66WindowsFormsSynchronizationContext context = new(); 83context = new WindowsFormsSynchronizationContext(); 98WindowsFormsSynchronizationContext context = new(); 125WindowsFormsSynchronizationContext context = new(); 141WindowsFormsSynchronizationContext context = new(); 156WindowsFormsSynchronizationContext context = new();
28 references to WindowsFormsSynchronizationContext
System.Windows.Forms (18)
System\Windows\Forms\Application.MarshallingControl.cs (1)
11/// This class allows us to handle sends/posts in our <see cref="WindowsFormsSynchronizationContext"/>
System\Windows\Forms\Application.ThreadContext.cs (2)
798WindowsFormsSynchronizationContext.InstallIfNeeded(); 830WindowsFormsSynchronizationContext.Uninstall(turnOffAutoInstall: false);
System\Windows\Forms\Control.cs (2)
379WindowsFormsSynchronizationContext.InstallIfNeeded(); 5968WindowsFormsSynchronizationContext.InstallIfNeeded();
System\Windows\Forms\Dialogs\TaskDialog\TaskDialog.cs (1)
408WindowsFormsSynchronizationContext.InstallIfNeeded();
System\Windows\Forms\Form.cs (8)
5464/// <see cref="WindowsFormsSynchronizationContext"/> could be retrieved or installed. 5480/// <see cref="WindowsFormsSynchronizationContext"/> could be retrieved or installed. 5505WindowsFormsSynchronizationContext.InstallIfNeeded(); 5744/// <see cref="WindowsFormsSynchronizationContext"/> could be retrieved or installed. 5756/// <see cref="WindowsFormsSynchronizationContext"/> could be retrieved or installed. 5785/// <see cref="WindowsFormsSynchronizationContext"/> could be retrieved or installed. 5797/// no <see cref="WindowsFormsSynchronizationContext"/> could be retrieved or installed. 5816WindowsFormsSynchronizationContext.InstallIfNeeded();
System\Windows\Forms\WindowsFormsSynchronizationContext.cs (4)
96/// Gets or sets a value indicating whether the <see cref="WindowsFormsSynchronizationContext"/> is installed when 100/// <see langword="true"/> if the <see cref="WindowsFormsSynchronizationContext"/> is installed; otherwise, 105/// The <see cref="AutoInstall"/> property determines whether the <see cref="WindowsFormsSynchronizationContext"/> 160if (AutoInstall && AsyncOperationManager.SynchronizationContext is WindowsFormsSynchronizationContext)
System.Windows.Forms.Tests (10)
System\Windows\Forms\WindowsFormsSynchronizationContextTests.cs (10)
13WindowsFormsSynchronizationContext context = new(); 14WindowsFormsSynchronizationContext copy = Assert.IsType<WindowsFormsSynchronizationContext>(context.CreateCopy()); 37WindowsFormsSynchronizationContext context = new(); 66WindowsFormsSynchronizationContext context = new(); 80WindowsFormsSynchronizationContext context = null; 98WindowsFormsSynchronizationContext context = new(); 125WindowsFormsSynchronizationContext context = new(); 141WindowsFormsSynchronizationContext context = new(); 156WindowsFormsSynchronizationContext context = new();