I use the SynchronizationContext
to invoke methods from my background thread on the UI thread. I read this post which asks for the difference of Send
and Post
. I understand the answer and would call Send
whenever I need the result of the called method to proceed and I would call Post
whenever I don't care for the result.
My question is: Can I make any assumption on the order in which the Post
ed delegates are called? For example I would Post
messages that could be displayed in a log window on the UI thread. But if the Post
ed delegates don't get processed in the order they are invoked, the message log would display the message out of order, too.
I could solve that by Send
ing the messages, but do I really need to worry about that?