Max Levy
Max Levy
Aug 22, 2017 · 1 min read

I think I understand that:

If we were to modify a UI component from a thread other than the UI Thread, a ‘System.InvalidOperationException’ would be thrown.

But I can’t quite follow the example given — why the context after

var bynderContents = await DoCurlAsync();

will not be suitable for

myTextBlock.Text = bynderContents;

The example doesn’t configure the continuation, so my understanding the execution will continue on the UI thread. What am I missing?

)

    Max Levy

    Written by

    Max Levy