protected virtual void Dispose(bool disposing) { if (disposing && _disposed == false) { Instances().Pop(); _scope.Dispose(); _disposed = true; } }
protected virtual void Dispose(bool disposing) { if (disposing) { if (ContextScope != null) { ContextScope.Dispose(); } } ContextScope = null; ParentContext = null; }
protected void cleanup() { _requestScope.Dispose(); _ambientContext.Dispose(); Host.Close(); }