Example #1
0
 public void Dispose()
 {
     CallContext.SetData(CallContextKey, null);
     if (_backupScope != null)
         _backupScope.Resume();
     _backupScope = null;
 }
Example #2
0
 public IteratorScope()
 {
     _backupScope = Current;
     if (_backupScope != null)
         _backupScope.Suspend();
     Resume();
 }