1 write to _dispatchThreadControl
Microsoft.AspNetCore.Components.WebView.WindowsForms (1)
WindowsFormsDispatcher.cs (1)
35
_dispatchThreadControl
= dispatchThreadControl;
13 references to _dispatchThreadControl
Microsoft.AspNetCore.Components.WebView.WindowsForms (13)
WindowsFormsDispatcher.cs (13)
39
=> !
_dispatchThreadControl
.InvokeRequired;
51
var asyncResult =
_dispatchThreadControl
.BeginInvoke(workItem);
52
await Task.Factory.FromAsync(asyncResult,
_dispatchThreadControl
.EndInvoke);
60
_ =
_dispatchThreadControl
.BeginInvoke(RethrowException, ex);
95
var asyncResult =
_dispatchThreadControl
.BeginInvoke(action, workItem, tcs);
96
await Task.WhenAll(tcs.Task, Task.Factory.FromAsync(asyncResult,
_dispatchThreadControl
.EndInvoke));
104
_ =
_dispatchThreadControl
.BeginInvoke(RethrowException, ex);
119
var asyncResult =
_dispatchThreadControl
.BeginInvoke(workItem);
120
return await Task<TResult>.Factory.FromAsync(asyncResult, result => (TResult)
_dispatchThreadControl
.EndInvoke(result)!);
128
_ =
_dispatchThreadControl
.BeginInvoke(RethrowException, ex);
163
var asyncResult =
_dispatchThreadControl
.BeginInvoke(action, workItem, tcs);
164
await Task.WhenAll(tcs.Task, Task.Factory.FromAsync(asyncResult,
_dispatchThreadControl
.EndInvoke));
173
_ =
_dispatchThreadControl
.BeginInvoke(RethrowException, ex);