public AsyncVoidInvocationRegion() { _previousContext = SynchronizationContext.Current; _currentContext = new AsyncSynchronizationContext(); SynchronizationContext.SetSynchronizationContext(_currentContext); }