I\'m getting confusing behavior when using a different SynchronizationContext inside an async function than outside.
Most of my program\'s code uses a custom Synchro
I would expect your code to work, but there are a few possible reasons why it's not:
SynchronizationContext
is current when it executes its continuations.SynchronizationContext
is captured.SynchronizationContext
is to establish the current one in one method, and then run another (possibly-asynchronous) method that depends on it.SynchronizationContext
is to append ConfigureAwait(false)
to all tasks that are awaited.