protected virtual void Dispose(bool disposing)
 {
     if (disposing &&
         _disposed == false)
     {
         Instances().Pop();
         _scope.Dispose();
         _disposed = true;
     }
 }
Example #2
0
        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();
 }