title: I thought await continued on the same thread as the caller, but it seems not to
body: <p>I thought one of the points about async/await is that when the task completes, the continuation is run on the same context when the await was called, which would, in my case, be the UI thread.</p>
  
  <p>So for example:</p>
  
  <pre><code>Debug.WriteLine("2: Thread ID: " + Thread.CurrentThread.ManagedThreadId);
  await fs.ReadAsync(data, 0, (int)fs.Length);
  Debug.WriteLine("3: Thread ID: " + Thread.CurrentThread.ManagedThreadId);
  </code></pre>
  
  <p>I would NOT expect this:</p>
  
  <pre><code>2: Thread ID: 10
  3: Thread ID: 11
  </code></pre>
  
  <p>What gives?  Why is the thread ID for the continuation different than the UI thread?</p>
  
  <p>According to <a href="http://msdn.microsoft.com/en-us/magazine/jj991977.aspx">this article</a>[^] I would need to explicitly call ConfigureAwait to change the behavior of the continuation context!</p>