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