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