Switch some calls to ThreadHelper.ThrowIfNotOnUIThread to something else
It seems there's a flaky issue in our unit test setup where sometimes ThrowIfNotOnUIThread will throw even if you're on the JTF main thread. It appears the implementation relies on checking the Dispatcher object that must sometimes not be set up right. We have a standard mechansim anyways for asserting that we are on the UI thread that consumes our IThreadingContext, so switching the helper we call should avoid this.
Showing
想要评论请 注册 或 登录