View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0001548||NoesisGUI||C# SDK||public||2019-08-27 14:59||2019-08-27 15:11|
|Target Version||Fixed in Version|
|Summary||0001548: Need the ability to Invoke calls onto the UI thread in the managed SDK|
|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:
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.