public AsyncVoidInvocationRegion()
 {
     _previousContext = SynchronizationContext.Current;
     _currentContext = new AsyncSynchronizationContext();
     SynchronizationContext.SetSynchronizationContext(_currentContext);
 }
示例#2
0
 public AsyncVoidInvocationRegion()
 {
     _previousContext = SynchronizationContext.Current;
     _currentContext  = new AsyncSynchronizationContext();
     SynchronizationContext.SetSynchronizationContext(_currentContext);
 }