private ServiceFlowScope() { if (IsNull) { return; } if (!Current.IsNull) { _parentScope = Current; } Current = this; }
private bool disposedValue = false; // To detect redundant calls protected virtual void Dispose(bool disposing) { if (!disposedValue) { if (disposing) { Current = _parentScope; } // TODO: free unmanaged resources (unmanaged objects) and override a finalizer below. // TODO: set large fields to null. disposedValue = true; } }
public ServiceFlowScopeWrapper(ServiceFlowScope scope) { Scope = scope; }