View Issue Details

IDProjectCategoryView StatusLast Update
0001548NoesisGUIC# SDKpublic2019-08-27 15:11
Reporterdarthmaule2Assigned To 
PrioritynormalSeverityfeatureReproducibilityalways
Status newResolutionopen 
Product Version2.2.3 
Target VersionFixed in Version 
Summary0001548: Need the ability to Invoke calls onto the UI thread in the managed SDK
DescriptionMost 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.
TagsC#
PlatformAny

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2019-08-27 14:59 darthmaule2 New Issue
2019-08-27 14:59 darthmaule2 Tag Attached: C#