public void Dispose()
        {
            if (_container == null)
            {
                throw new ObjectDisposedException("this", "dependency scope already disposed");
            }

            GC.SuppressFinalize(this);

            _resolvedComponents.ForEach(item => _container.Release(item));
            _container          = null;
            _resolver           = null;
            _resolvedComponents = null;
        }
 public WindsorDependencyScope(IWindsorContainer container, WindsorDependencyResolver resolver)
 {
     _container = container;
     _resolver  = resolver;
 }