| Description | Most UI frameworks provide mechanisms for running code on the UI thread… we think we can implement something like that ourselves, but think the solution would be much better if it was baked into the framework.
Essentially, we would like an implementation of the ThreadSwitcher described in these blogs:
https://devblogs.microsoft.com/oldnewthing/20190328-00/?p=102368
https://devblogs.microsoft.com/oldnewthing/20190329-00/?p=102373
You can see that ThreadSwitcher is implemented using the CoreDispatcher class for UWP, the Dispatcher for WPF, etc… we need a Dispatcher for Noesis Managed SDK that we can call BeginInvoke on and a way to tell if we are on the UI thread or not.
I don’t fully understand all the classes involved, but I noticed that Noesis doesn’t set SynchronizationContext.Current at startup, so I think an implementation of a custom SynchronizationContext would also be part of this solution. |
|---|