Execute.OnUIThread, Will it if InitializeWithDispatcher() is not called?

Topics: Framework Services
Mar 29, 2012 at 10:26 PM
Edited Mar 30, 2012 at 8:14 AM

It is possible to get Caliburn.Micro to Execute on the UI Thread by calling Execute.OnUIThread. If I took the line Execute.InitializeWithDispatcher() out of the bootstrapper would this still be the case? Does it only call on the UI thread if I have provided a way to marshal to it in the first place?

Coordinator
Apr 1, 2012 at 2:26 AM

If you remove that Initialize...method then calling Execute.OnUIThread will not do any marshalling. It will simply execute the code on the same thread as the caller.

Apr 1, 2012 at 1:08 PM

Thanks Rob. I had thought this might be the case but just wanted to be sure.